Changeset [2e5081b137dd575a9a6a80a7098b3fcba9a3e9d4] by Alexander Ljungberg
May 27th, 2011 @ 08:02 PM
Optimise array controller addObject: by eliminating entirely pointless rearrange when added objects did not pass the filter. Also avoided double rearrange if clearsFilterPredicateOnInsertion.
CPArrayControllerPerformance.j execution time on
"testAddObject_, sorted, filtered" down from ~420ms to ~60ms on my
machine.
https://github.com/280north/cappuccino/commit/2e5081b137dd575a9a6a8...
Committed by Alexander Ljungberg
- M AppKit/CPArrayController.j
- M Tests/AppKit/CPArrayControllerPerformance.j
Create your profile
Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป
The Cappuccino Web Framework, including AppKit, Foundation, and Objective-J.