Re: Very slow NSTableView
Re: Very slow NSTableView
- Subject: Re: Very slow NSTableView
- From: Alex Zavatone <email@hidden>
- Date: Mon, 03 Jul 2017 22:07:31 -0500
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