Differences From Artifact [e8d7f3a5b9]:
- File
src/OFMutableSet_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: 1224) [annotate] [blame] [check-ins using]
To Artifact [6a160c9723]:
- File src/OFMutableSet_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: 1223) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
28 29 30 31 32 33 34 | { if (self == [OFMutableSet_hashtable class]) [self inheritMethodsFromClass: [OFSet_hashtable class]]; } - (void)addObject: (id)object { | | | | | 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | { if (self == [OFMutableSet_hashtable class]) [self inheritMethodsFromClass: [OFSet_hashtable class]]; } - (void)addObject: (id)object { [dictionary OF_setObject: [OFNumber numberWithSize: 1] forKey: object copyKey: NO]; mutations++; } - (void)removeObject: (id)object { [dictionary removeObjectForKey: object]; |
︙ | ︙ |