Differences From Artifact [2f13ccd9ab]:
- File
src/OFXMLElement+Serialization.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: 1472) [annotate] [blame] [check-ins using]
To Artifact [9ca8fe4ac9]:
- File src/OFXMLElement+Serialization.m — part of check-in [e2f4c1283c] at 2012-12-15 23:31:17 on branch trunk — OFString: Improved API for getting C strings. (user: js, size: 1470) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
32 33 34 35 36 37 38 | @implementation OFXMLElement (Serialization) - (id)objectByDeserializing { void *pool = objc_autoreleasePoolPush(); Class class; id object; | | | 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 | @implementation OFXMLElement (Serialization) - (id)objectByDeserializing { void *pool = objc_autoreleasePoolPush(); Class class; id object; if ((class = objc_getClass([name cStringUsingEncoding: OF_STRING_ENCODING_ASCII])) == Nil) @throw [OFNotImplementedException exceptionWithClass: Nil]; if (![class conformsToProtocol: @protocol(OFSerialization)]) @throw [OFNotImplementedException exceptionWithClass: class selector: @selector(initWithSerialization:)]; |
︙ | ︙ |