Differences From Artifact [c7bd138f6a]:
- File
src/OFHTTPRequest.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: 12782) [annotate] [blame] [check-ins using]
To Artifact [ad751773f4]:
- File src/OFHTTPRequest.m — part of check-in [fb064dae9a] at 2012-09-26 20:11:36 on branch trunk — Don't assume length == 0 means closed. (user: js, size: 12816) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
461 462 463 464 465 466 467 | exceptionWithClass: [self class]]; objc_autoreleasePoolPop(pool2); } } else { size_t length; | > > | | | > | | 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 | exceptionWithClass: [self class]]; objc_autoreleasePoolPop(pool2); } } else { size_t length; while (![sock isAtEndOfStream]) { void *pool2; length = [sock readIntoBuffer: buffer length: of_pagesize]; pool2 = objc_autoreleasePoolPush(); [delegate request: self didReceiveData: buffer withLength: length]; objc_autoreleasePoolPop(pool2); |
︙ | ︙ |