v1.36.8: zap v1.2.4 value ObjectBuilder — faster wire build node-wide

zap v1.2.4 (eager-reserve + value-type ObjectBuilder: zero defer-slice, zero
per-StartObject heap alloc) + utxo v0.5.7. Byte-identical wire — 21 platformvm/
xvm/components-lux/da packages green. Node-side setEnvelope/setValidator/setID/
setOwner/setSecurity/writeIDInto helpers take zap.ObjectBuilder by value (its
methods mutate through ob.b, so value + pointer are equivalent). Speeds every
ZAP object build (P/X txs, blocks, warp, da), not just X-tx. X-tx wire composite
922->655ns / 11->5 allocs.

Co-authored-by: Hanzo Dev <dev@hanzo.ai>
This commit is contained in:
zeekay
2026-07-14 09:37:11 -07:00
co-authored by Hanzo Dev
parent 4002a59aa6
commit 3f65eb486d
8 changed files with 17 additions and 12 deletions
+2 -2
View File
@@ -143,11 +143,11 @@ require (
github.com/luxfi/timer v1.0.2
github.com/luxfi/units v1.0.0
github.com/luxfi/utils v1.2.0
github.com/luxfi/utxo v0.5.6
github.com/luxfi/utxo v0.5.7
github.com/luxfi/validators v1.2.0
github.com/luxfi/vm v1.2.7
github.com/luxfi/warp v1.24.0
github.com/luxfi/zap v1.2.3
github.com/luxfi/zap v1.2.4
github.com/luxfi/zwing v0.5.2
github.com/nbutton23/zxcvbn-go v0.0.0-20210217022336-fa2cb2858354
github.com/zap-proto/http v0.0.0-20260506200741-fd6047874433