pspp-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gtk3: Replaced PsppSheetView with GtkTreeView for the variables wind


From: John Darrington
Subject: Re: gtk3: Replaced PsppSheetView with GtkTreeView for the variables window
Date: Fri, 11 Dec 2015 07:10:10 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

On Thu, Dec 10, 2015 at 10:41:23AM -0800, Ben Pfaff wrote:
     On Thu, Dec 10, 2015 at 07:12:36PM +0100, John Darrington wrote:
     > I don't exactly recall the reasons why we decided that GtkTreeView didn't
     > satisfy our needs - perhaps it was to do with the rendering of the 
"special"
     > widgets in the Variable type,decimals and value labels columns - but 
maybe
     > whatever it was, they no longer apply now that we have moved to Gtk+3
     
     The only real issue with GtkTreeView is that it doesn't efficiently
     handle large data sets.  It uses O(n) time to deal with a sheet with n
     rows or n columns.  It's fine for small data sets but with a million
     rows it falls over.
     

Oh I think I remember now.  As I recall it, there is no problem with large 
numbers of rows,
so long as the "fixed-row-height" property is set.  The problem comes with 
large numbers
of columns (unfortunately there is no corresponding "fixed-column-width" 
property).  This
is why Ben invented the PsppireColumnFacade thing.

However, this won't be a problem for the variable sheet, since that only has a 
small number
of columns.  But it could be a problem in the data sheet when large numbers of 
variables 
are involved.

-- 
Avoid eavesdropping.  Send strong encryted email.
PGP Public key ID: 1024D/2DE827B3 
fingerprint = 8797 A26D 0854 2EAB 0285  A290 8A67 719C 2DE8 27B3
See http://sks-keyservers.net or any PGP keyserver for public key.

Attachment: signature.asc
Description: Digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]