Differences From Artifact [c7fc790b94]:
- File
src/OFString+Hashing.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: 2047) [annotate] [blame] [check-ins using]
To Artifact [e9a2adf039]:
- File src/OFString+Hashing.m — part of check-in [fb515e8e24] at 2012-10-09 15:07:30 on branch trunk — Make use of instancetype. (user: js, size: 2048) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
53 54 55 56 57 58 59 | encoding: OF_STRING_ENCODING_ASCII length: 32]; } - (OFString*)SHA1Hash { void *pool = objc_autoreleasePoolPush(); | | | 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 | encoding: OF_STRING_ENCODING_ASCII length: 32]; } - (OFString*)SHA1Hash { void *pool = objc_autoreleasePoolPush(); OFSHA1Hash *hash = [OFSHA1Hash hash]; uint8_t *digest; char ret[OF_SHA1_DIGEST_SIZE * 2]; size_t i; [hash updateWithBuffer: [self UTF8String] length: [self UTF8StringLength]]; digest = [hash digest]; |
︙ | ︙ |