@rosyna I'm holding back. Don't get me started on allocations and stalls that aren't at all obvious.
@rosyna Why wouldn't fast enumeration have been possible before? Were there really a lot of unused ivars removed?
-
-
@mjtsai Fast enumeration requires a lot of compiler support and it just happened to be an Objective-C 2.0 feature. https://www.mikeash.com/pyblog/friday-qa-2010-04-16-implementing-fast-enumeration.html … - View other replies
-
@mjtsai And many of the older classes (NSMenu, NSView, NSWindow, et cetera) have ivars no longer in use. - View other replies
-
@mjtsai In fact, NSWindow got so insane that a new class, NSWindowAuxiliary, was created to hold the additional ivars. -
@mjtsai As NSWindowAuxilary isn't public, Apple can add and remove ivars as needed without having the fragile base class problem. -
@rosyna So why are they still using it now that we have Objective-C 2? - View other replies
-
@mjtsai As long as the 32-bit i386 runtime exists, they can't dump the ivars from the headers, sadly. -
@rosyna So, again, this is not (yet) an actual performance improvement resulting from Objective-C 2. -
@mjtsai While NSWindow may have been good to show the pain of fragile base classes, it may have been bad for an optimization example - Show more
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
Guy English
Rosyna Keller
Marcel Weiher
Michael Tsai