part of me still wants to write [NSMutableArray array] instead of [NSMutableArray new] since maayybbeee this code will be MRC one day again
-
-
@rentzsch@Catfish_Man That doesn’t explain the +[NSData date]/gettimeofday() special case, though. -
-
@Catfish_Man@rentzsch There was something about calling gettimeofday() that messed up the normal tail call optimization? -
-
@Catfish_Man@rentzsch Anything in particular that would cause the same problem with other POSIX API calls? -
-
@Catfish_Man@mjtsai@rentzsch Write a test that runs otool to disassemble and verifies those functions do not end with `ret` or `bx lr`. -
@Catfish_Man@mjtsai@rentzsch Another idea: rdar://15951129 ER: Analyzer check for code that defeats ARC's autoreleased-return optimization - Show more
-
-
-
@rentzsch@Catfish_Man shouldn't the last 2 autoreleaseReturnValue be retainAutoreleasedReturnValue in comment? -
@an0@Catfish_Man huh, I think you’re right.
-
-
-
@rentzsch@catfish_man perf tidbit: I tried changing objc_retainAutoreleasedReturnValue to jump past the retain instead of setting a bit -
@rentzsch@catfish_man bah, I mean changed objc_autoreleaseReturnValue to jump past the call to objc_retainAutoreleasedReturnValue
-
-
-
@rentzsch@catfish_man …but it was slower! My best theory was that it made branch prediction really unhappy. - View other replies
-
@kongtomorrow@rentzsch I remember that! That’s still one of my favorite perf anecdotes :)
-
-
@rentzsch@Catfish_Man this is just amazing!
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.
rentzsch
David Smith
Michael Tsai
Greg Parker
an0
Ken Ferry
Bartosz Ciechanowski