• 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: Lots of items in an NSOutline view.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Lots of items in an NSOutline view.


  • Subject: Re: Lots of items in an NSOutline view.
  • From: Corbin Dunn <email@hidden>
  • Date: Thu, 22 Dec 2005 12:08:25 -0800

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
  • Follow-Ups:
    • Re: Lots of items in an NSOutline view.
      • From: Hex Star <email@hidden>
References: 
 >Lots of items in an NSOutline view. (From: Stefan Pantos <email@hidden>)

  • Prev by Date: Re: Running out of VM
  • Next by Date: Re: Lots of items in an NSOutline view.
  • Previous by thread: Lots of items in an NSOutline view.
  • Next by thread: Re: Lots of items in an NSOutline view.
  • Index(es):
    • Date
    • Thread