V4CC vs DataGrid
Justin Drury
justin at crunch-recording.com
Thu Sep 21 08:05:37 CDT 2006
Hey Dave I think you'll find if you do any sort of performance tests
on an NSTableView and a V4CC datasource that you'll be bottlenecking
in the LayoutManager(especially if your column widths start to
truncate your source data(ellipsis ....). I'm always working with
around 300,000 records and its a speedy little thing! I'd worry
about attacking that first before delving into Garbage Collection
(which from my understanding is an Objective C 2.0 thing and thus
will require your users to be running Leopard).
CocoaMySQL is slow because as Ruslan said, its using client side
cursors, when you send a query to MySQL and it returns back 30000
records all that text has to be sent over to the client before it'll
be displayed. The actual browse speed shouldn't be too bad though.
(But again chances are its the layout manager slowing things down
while it tries to figure out the best way to format the text. This
seems especially true if a column is broken by the control bounds[it
extends past the control creating a horizontal slider, and you are
looking at half of it]). You could always override the datacell if
you wanted to squeeze out performance and do your own text drawing.
Justin
More information about the Valentina-beta
mailing list