Repository navigation
package:objective_c v9.6.3
·
20 commits
to main
since this release
- Make the
NSInputStreamreturned bytoNSInputStreamavoid copying the
data added to it, and avoid moving the unread data after every read. For
large chunks of data, this makes reading up to 1.8x faster and halves memory
use. - Make
toNSDatacopy the data once, rather than twice. - Increase the amount of data that
toNSInputStreambuffers ahead of the
reader from 4 KiB to 1 MiB, which makes reading the returnedNSInputStream
up to 7x faster. - Fix a bug in the
NSInputStreamreturned bytoNSInputStreamwhere a read that was waiting
for data never returned if the stream was closed or if the isolate that
created the stream exited. The read now returns-1, and setsstreamError
if the isolate exited. - Fix a bug in the
NSInputStreamreturned bytoNSInputStreamwhen it is scheduled in a run
loop. The stream now sendsNSStreamEvents to its delegate, and
hasBytesAvailableonly returnsYESif a read won't wait. Before, a reader
that waited for events never received any, and a reader that read when
hasBytesAvailablereturnedYESblocked its run loop until data arrived. - Use minor and patch versions of iOS and macOS deployment targets from
package:code_assets2.2.0 in the native support library's build hook. - Replace the expensive debug assert that blocks and objects are valid with a
cheaper and safer check.