• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: TableView refresh
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: TableView refresh


  • Subject: Re: TableView refresh
  • From: Darrin Filer <email@hidden>
  • Date: Fri, 8 Feb 2002 15:47:39 -0500

I'm currently working on an app which calls reload data on a table with over 4000 rows. Refresh speed hasn't been an issue for this program. The datasource only references an array when geting each cell's value. This allows me to do instantaneous searches, filters, and other manipulations of data in the data source without getting bogged down with calculations everytime the table is refreshed.

Its very similar to the concept of double-buffered windows in which scrolling merely loads a different segment of the buffer. The only place where I've found the datasource protocol to be inefficient is in how many times it wants to requerry the number of rows in a table.

darrin filer


On Thursday, February 7, 2002, at 05:43 PM, Paul Ferguson wrote:

On Wednesday, February 6, 2002, at 06:34 AM, Ondra Cada wrote:

Though I do agree such services would be handy sometimes, in vast majority
of cases reloadData is a good solution without any significant performance
loss.

That has not been my experience, I am seeing severe performance problems with a table that gets reloaded on average about once per second (displaying players in an online game). In my case, I see a substantial difference when the table fills about half the screen size (say 800 x 600 pixels) versus a smaller size (300 x 100), indicating table redrawing is a bottleneck (the table has 125 rows x 10 columns, 5 columns display NSImages). At the bigger sizes, it completely swamps the CPU (400 mHz PB).

<fergy/>
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.
_______________________________________________
cocoa-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/cocoa-dev
Do not post admin requests to the list. They will be ignored.

References: 
 >Re: TableView refresh (From: Paul Ferguson <email@hidden>)

  • Prev by Date: Re: Performance and NSTimee
  • Next by Date: Re: Two ?'s: Default code for NSView & FileMerge problem
  • Previous by thread: Re: TableView refresh
  • Next by thread: Interacting with an NSTask via pipes
  • Index(es):
    • Date
    • Thread