Differences From Artifact [aae2d470af]:
- File
src/OFDataArray.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: 12462) [annotate] [blame] [check-ins using]
To Artifact [0d47039615]:
- File src/OFDataArray.m — part of check-in [56df9c44de] at 2012-09-09 14:36:07 on branch trunk — OFNumber: Implement OFComparing. (user: js, size: 12490) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
376 377 378 379 380 381 382 | return NO; if (memcmp([otherDataArray cArray], data, count * itemSize)) return NO; return YES; } | | | | 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 | return NO; if (memcmp([otherDataArray cArray], data, count * itemSize)) return NO; return YES; } - (of_comparison_result_t)compare: (id <OFComparing>)object { OFDataArray *otherDataArray; int comparison; size_t otherCount, minimumCount; if (![object isKindOfClass: [OFDataArray class]]) @throw [OFInvalidArgumentException exceptionWithClass: [self class] selector: _cmd]; otherDataArray = (OFDataArray*)object; if ([otherDataArray itemSize] != itemSize) @throw [OFInvalidArgumentException exceptionWithClass: [self class] selector: _cmd]; otherCount = [otherDataArray count]; |
︙ | ︙ |