Repository navigation
Releases: MrHIDEn/cstruct
Releases · MrHIDEn/cstruct
Release list
v1.9.0
What's Changed
- perf: compile the interpreter model once (read ~2.5x, make ~1.5x faster) by @MrHIDEn in #83
- perf: single-buffer writers + switch atom dispatch (interpreter ~2-6x faster) by @MrHIDEn in #84
- fix: UTF-8 length prefix + enum support in codegen by @MrHIDEn in #85
- feat: dynamic buffer (buf[i16]) in compiled write by @MrHIDEn in #86
- docs: refresh format benchmark results by @MrHIDEn in #87
- perf: compute UTF-8 length once per pass in codegen write by @MrHIDEn in #88
- fix: static-JSON size validation used raw object length by @MrHIDEn in #89
- fix: static JSON sized-atom (j8/j20/json20/any20) not stringified by @MrHIDEn in #90
- docs: fix stale 'enum not supported in codegen' comment by @MrHIDEn in #91
- docs: note codegen benchmark vs protobufjs in README by @MrHIDEn in #92
- release: 1.9.0 by @MrHIDEn in #93
Full Changelog: v1.8.2...v1.9.0
v1.8.2
v1.8.0
What's new in 1.8.0
Added
CStructUint8Array— browser-ready serialization onUint8Array/DataView(no NodeBuffer): same model syntax,read/write/make,compileRead/compileWrite/compileMake,fromModelTypes/fromCompiledand{ endian: 'be' }option (PR #78)
Performance
- Interpreter (
read/write/make) reuses reader/writer instances perCStruct(newreset()/run()on reader/writer classes) — ~15× faster interpreter (up to 2–3.5M ops/s) (PR #79)
Docs / Benchmarks
- Full audit of
doc/BENCHMARKS-*.md— all tables re-measured in one parallel Node/Bun/Deno session; addedCStruct (Buffer codegen)column - New
doc/BENCHMARKS-DENO.md; npm scripts:bench:node/bench:bun/bench:deno - README: new
CStructUint8Arraysection (browser/Deno path)
v1.5.3
v1.4.0
v1.3.2
Fixed 1 issue. Thanks @ArkadyKoretsky!
Fix:
static from function in cstruct-le changed to getCStructLE