Differences From Artifact [91f4360e05]:
- File
src/OFDate.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: 13089) [annotate] [blame] [check-ins using]
To Artifact [8b872152c8]:
- File src/OFDate.m — part of check-in [6c16e03d93] at 2012-09-20 00:05:55 on branch trunk — Fix conflicting types. (user: js, size: 13112) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
383 384 385 386 387 388 389 | } - copy { return [self retain]; } | | | | 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 | } - copy { return [self retain]; } - (of_comparison_result_t)compare: (id <OFComparing>)object { OFDate *otherDate; if (![object isKindOfClass: [OFDate class]]) @throw [OFInvalidArgumentException exceptionWithClass: [self class] selector: _cmd]; otherDate = (OFDate*)object; if (seconds < otherDate->seconds) return OF_ORDERED_ASCENDING; if (seconds > otherDate->seconds) return OF_ORDERED_DESCENDING; return OF_ORDERED_SAME; |
︙ | ︙ |