Differences From Artifact [ce4770d88a]:
- File
src/OFDictionary_hashtable.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: 17994) [annotate] [blame] [check-ins using]
To Artifact [362543b076]:
- File src/OFDictionary_hashtable.m — part of check-in [c137da5e5b] at 2012-09-16 15:27:48 on branch trunk — Prefix all private methods with OF_. (user: js, size: 18002) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
53 54 55 56 57 58 59 | [self release]; @throw e; } return self; } | | | | 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 | [self release]; @throw e; } return self; } - OF_initWithDictionary: (OFDictionary*)dictionary copyKeys: (BOOL)copyKeys { self = [super init]; @try { uint32_t i; OFDictionary_hashtable *hashtable; |
︙ | ︙ | |||
114 115 116 117 118 119 120 | return self; } - initWithDictionary: (OFDictionary*)dictionary { if ([dictionary class] == [OFDictionary_hashtable class] || [dictionary class] == [OFMutableDictionary_hashtable class]) | | | | 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 | return self; } - initWithDictionary: (OFDictionary*)dictionary { if ([dictionary class] == [OFDictionary_hashtable class] || [dictionary class] == [OFMutableDictionary_hashtable class]) return [self OF_initWithDictionary: dictionary copyKeys: YES]; self = [super init]; @try { void *pool; OFEnumerator *enumerator; id key; |
︙ | ︙ |