• 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: Very slow NSTableView
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Very slow NSTableView


  • Subject: Re: Very slow NSTableView
  • From: Roland King <email@hidden>
  • Date: Tue, 4 Jul 2017 11:10:50 +0800

isn't this what Instruments is supposed to be good at telling you?


On 04/07/2017 11:07, Alex Zavatone wrote:
Stab in the dark, but what is your cell identifier value?

I have seen WAY TOO MUCH CODE where people have created a different cell
identifier for each cell.

Also, on iOS, there is a method called prepareCellForReuse that might apply
here.

You can also log when the cell is displayed at the start and the end and see
where the time suck is happening in an attempt to narrow this down.

GL.

- Alex Zavatone

On Jul 3, 2017, at 8:19 PM, Graham Cox <email@hidden> wrote:

I have a NSTableView, cell-based (partially because it’s a very long-standing
piece of code, partially because it is just a table of values which a
cell-based table is ideally suited to - view-based would not do anything for me
here).

This table has always worked fine, but in Sierra, it is slow. as. molasses.

It is particularly noticeable when scrolling, which is needed when it has more
than about 20 items. I get a ‘framerate’ of about 1 every 2 seconds.

I assumed my data source methods were slow, so I tried stubbing them out to see
if that was indeed the cause, but no - even returning placeholder strings
doesn’t make any difference.

Has anyone else noticed this in Sierra? What has changed that could make table
views slow, and how can I restore its normal performance? I’ve turned off
elasticity and ‘auto content inset’ for the scrollview, which I have noticed to
cause some performance issues in other views, but it hasn’t helped.

—Graham


_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden
_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Very slow NSTableView (From: Graham Cox <email@hidden>)
 >Re: Very slow NSTableView (From: Alex Zavatone <email@hidden>)

  • Prev by Date: Re: Very slow NSTableView
  • Next by Date: Re: Very slow NSTableView
  • Previous by thread: Re: Very slow NSTableView
  • Next by thread: Increasing stack size of NSDocument's open file thread
  • Index(es):
    • Date
    • Thread