swift-nio/Sources/NIOWebSocket
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
..
Base64.swift Improving performance of base64 encoding by about 10% (#1862) 2021-06-07 11:12:06 +01:00
NIOWebSocketClientUpgrader.swift ByteBuffer: provide multi read/write int methods (#1987) 2021-11-22 14:58:52 +00:00
NIOWebSocketFrameAggregator.swift Clean up dependencies and imports. (#1935) 2021-08-12 13:49:46 +01:00
NIOWebSocketServerUpgrader.swift Clean up dependencies and imports. (#1935) 2021-08-12 13:49:46 +01:00
SHA1.swift Stop copying Strings into Arrays for SHA1 (#1413) 2020-02-25 08:52:36 +00:00
WebSocketErrorCodes.swift Clean up dependencies and imports. (#1935) 2021-08-12 13:49:46 +01:00
WebSocketFrame.swift Clean up dependencies and imports. (#1935) 2021-08-12 13:49:46 +01:00
WebSocketFrameDecoder.swift Clean up dependencies and imports. (#1935) 2021-08-12 13:49:46 +01:00
WebSocketFrameEncoder.swift Clean up dependencies and imports. (#1935) 2021-08-12 13:49:46 +01:00
WebSocketOpcode.swift remove extension public/internal modifiers (#822) 2019-02-14 13:25:30 +00:00
WebSocketProtocolErrorHandler.swift Clean up dependencies and imports. (#1935) 2021-08-12 13:49:46 +01:00