swift-nio/dev
Johannes Weiss b2629903ca
ByteBuffer: provide multi read/write int methods (#1987)
Motivation:

Many network protocols (especially for example NFS) have quite a number
of integer values next to each other. In NIO, you'd normally parse/write
them with multiple read/writeInteger calls.

Unfortunately, that's a bit wasteful because we're checking the bounds
as well as the CoW state every time.

Modifications:

- Provide read/writeMultipleIntegers for up to 15 FixedWidthIntegers.
- Benchmarks

Result:

Faster code. For 10 UInt32s, this is a 5x performance win on my machine,
see benchmarks.
2021-11-22 14:58:52 +00:00
..
alloc-limits-from-test-output dev/scripts: add missing license headers (#1852) 2021-05-07 10:28:07 +01:00
boxed-existentials.d add useful dtrace scripts to debug allocations (#352) 2018-04-25 15:23:09 +01:00
generate-bytebuffer-multi-int.sh ByteBuffer: provide multi read/write int methods (#1987) 2021-11-22 14:58:52 +00:00
git.commit.template Adapt git template that is also used by Netty 2018-02-09 12:19:12 +01:00
lldb-smoker dev/scripts: add missing license headers (#1852) 2021-05-07 10:28:07 +01:00
make-single-file-spm make-single-file-spm: better directory name (#1446) 2020-03-13 17:01:37 +00:00
malloc-aggregation.d alloc tests: implement malloc_zone_* (#1569) 2020-06-26 11:04:37 +01:00
stackdiff-dtrace.py Make stackdiff-dtrace.py a little more tolerant (#1771) 2021-03-02 12:26:52 +00:00
update-alloc-limits-to-last-completed-ci-build Make Swift 5.2 the minimum requirement (#1860) 2021-06-18 21:02:41 +01:00