Skip to content

Commit 401d8c1

Browse files
authored
Improve buffer management (#6)
* Use circular buffers for input/output buffering * Add a soft limit for the internal input/output buffers * Start from initial capacity when growing a buffer after shrinking it * Only apply the soft capacity limit when the buffers are empty * Temporarily hardcode the soft-limit for backwards-compatibility * Bump version to 0.10.1
1 parent be4d475 commit 401d8c1

File tree

6 files changed

+429
-248
lines changed

6 files changed

+429
-248
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ license = "MIT"
1313
name = "parity-ws"
1414
readme = "README.md"
1515
repository = "https://github.com/paritytech/ws-rs"
16-
version = "0.10.0"
16+
version = "0.10.1"
1717

1818
[dependencies]
1919
byteorder = "1.2.1"

src/capped_buffer.rs

Lines changed: 0 additions & 187 deletions
This file was deleted.

0 commit comments

Comments
 (0)