Re: Lots of items in an NSOutline view.
Re: Lots of items in an NSOutline view.
- Subject: Re: Lots of items in an NSOutline view.
- From: Hex Star <email@hidden>
- Date: Thu, 22 Dec 2005 12:27:10 -0800
corbin said: in 10.4.3 I greatly enhanced the speed of
NSOutlineView.
Really? You develop Cocoa? Can I have a tour of Apple? :P lol...
On 12/22/05, Corbin Dunn <email@hidden> wrote:
>
> I've been trying to put 200'000 elements into a NSOutline view.
>
> Each element contains at least one leaf an no tree nodes. I'm using
>
> a binding from an NSTreeController. I've specified a isLeaf method
>
> so that it doesn't have to request the nodes contents to find out
>
> if it a node or not. But it's super slow and uses a huge amount of
>
> memory.
>
>
Have you used Shark or sample to find out what is slow?
>
>
>
>
> Using the same data but displaying it in an NSTable ignoring the
>
> objects it contains works very quickly.
>
>
How are you displaying it in a table?
>
>
> All the tree nodes in the Outline view are collapsed so I see no
>
> reason why it should be accessing them. If I just add say 10
>
> elements it's fine so it does seem to be doing the correct thing.
>
>
What is it accessing when it shouldn't? When you debug it and stick a
>
breakpoint on the things it shouldn't be accessing, what is the
>
callstack at that point? (aka: backtrace, bt).
>
>
>
>
> Could it be because I'm using an NSTreeController? Or is there
>
> something that I'm missing.
>
>
It is hard to say without more information.
>
>
What OS are you using? in 10.4.3 I greatly enhanced the speed of
>
NSOutlineView.
>
>
--corbin
>
_______________________________________________
>
Do not post admin requests to the list. They will be ignored.
>
Cocoa-dev mailing list (email@hidden)
>
Help/Unsubscribe/Update your Subscription:
>
>
This email sent to email@hidden
>
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden