Differences From Artifact [f2af10f3e4]:
- File
src/OFZIPArchive.m
— part of check-in
[134a1121c7]
at
2016-05-29 13:02:05
on branch trunk
— Rename OFInflateStream back to OFDeflateStream
The reason for renaming to OFInflateStream was to have one stream for
decompression and one for compression in order to reduce memory usage if
only one of the two is needed, as the ivar layout will be smaller then.
However, it is more consistent with other stream classes to have one
stream that can handle both. The increased memory footprint of having
ivars for compression and decompression can be solved by having a
pointer to those instead. This will not incur any performance penalty,
as the pointer will be dereferenced instead of the ivars, meaning the
overhead is only getting the pointer from the ivars once. (user: js, size: 13899) [annotate] [blame] [check-ins using]
To Artifact [c12f6e9a97]:
- File
src/OFZIPArchive.m
— part of check-in
[1de551cb5f]
at
2016-06-07 22:56:28
on branch trunk
— Add support for reusing OFStreams after close
Right now, this is only useful for OFTCPSocket, as this is the only
class so far not establishing the stream in the init method. However,
this adds the general infrastructure to allow reuse to all subclasses of
OFStream. (user: js, size: 13916) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
563 564 565 566 567 568 569 | return ret; } - (void)close { _closed = true; | | > > | 563 564 565 566 567 568 569 570 571 572 573 | return ret; } - (void)close { _closed = true; [super close]; } @end |