Skip to content

package:objective_c v9.6.3

Choose a tag to compare

@liamappelbe liamappelbe released this 03 Nov 22:03
· 20 commits to main since this release
c9e8118
  • Make the NSInputStream returned by toNSInputStream avoid 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 toNSData copy the data once, rather than twice.
  • Increase the amount of data that toNSInputStream buffers ahead of the
    reader from 4 KiB to 1 MiB, which makes reading the returned NSInputStream
    up to 7x faster.
  • Fix a bug in the
    NSInputStream returned by toNSInputStream where 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 sets streamError
    if the isolate exited.
  • Fix a bug in the
    NSInputStream returned by toNSInputStream when it is scheduled in a run
    loop. The stream now sends NSStreamEvents to its delegate, and
    hasBytesAvailable only returns YES if a read won't wait. Before, a reader
    that waited for events never received any, and a reader that read when
    hasBytesAvailable returned YES blocked its run loop until data arrived.
  • Use minor and patch versions of iOS and macOS deployment targets from
    package:code_assets 2.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.