Bindings with Multiple Array Controllers

While working with Noah to resolve the unusually slow sorting in LogTen, we discovered that the number of NSArrayControllers and the way that you use them in a table view can have a huge impact on speed.

Any more than a couple hundred rows in LogTen's main table would cause sorting and filtering to become unbearably slow. We Sharked it but nothing really jumped out. That table view has three columns or so that use NSPopupButtonCells. Each of those cells was bound to a separate NSArrayController.

Through experimentation, we figured out that populating all of those dropdowns with different controllers caused a major bottleneck. Changing the column bindings so that everything went through the same NSArrayController resolved the issue.
Design Element
Bindings with Multiple Array Controllers
Posted Dec 5, 2004 — 0 comments below




 

Comments Temporarily Disabled

I had to temporarily disable comments due to spam. I'll re-enable them soon.





Copyright © Scott Stevenson 2004-2015