Differences From Artifact [712c4645d0]:
- File
src/OFNull.m
— part of check-in
[1255f3a11a]
at
2012-08-10 20:08:24
on branch trunk
— Directly use the runtime's autorelease pools.
This greatly improves performance, as it gets rid of the overhead of
OFAutoreleasePool. (user: js, size: 2020) [annotate] [blame] [check-ins using]
To Artifact [145485c3f5]:
- File src/OFNull.m — part of check-in [fb515e8e24] at 2012-10-09 15:07:30 on branch trunk — Make use of instancetype. (user: js, size: 2029) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
24 25 26 27 28 29 30 | #import "OFNotImplementedException.h" #import "autorelease.h" static OFNull *null = nil; @implementation OFNull | | | 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | #import "OFNotImplementedException.h" #import "autorelease.h" static OFNull *null = nil; @implementation OFNull + (OFNull*)null { if (null != nil) return null; null = [[self alloc] init]; return null; |
︙ | ︙ |