Skip to content

Release Notes - v0.11.3

Title: Improve evaluation speed and allocation efficiency

Version: v0.11.3

Release: v0.11.3

Comparison: v0.11.2…v0.11.3

NetworkCompatible
mainnet⛔
preprod-testnet✅
preview-testnet✅
musashi✅

This release improves evaluator speed and allocation efficiency across integer arithmetic, data construction, constant creation, and reusable evaluation resources.

  • Improved evaluation of large divideInteger operands by calculating the quotient and remainder together and reusing a read-only constant to adjust the floor result. Tests cover floor semantics and input immutability, with about 7.5% fewer allocations and 5% less time on a 1,360-validator corpus.

Build Dynamic Integer Constants Efficiently

Section titled “Build Dynamic Integer Constants Efficiently”
  • Reduced allocations for dynamic int64 constants by constructing each value with one allocation. Each evaluation machine now keeps its own cache, so parallel evaluation no longer contends on a process-wide lock.
  • Enhanced typed list construction so adding data heads to empty list(data) constants uses data-list representations, while adding data-pair heads to list(pair data data) values uses data-map representations. The evaluator validates declared ProtoPair types and rejects mismatched types, reducing allocations by about 28% and time by 9% on a recent mainnet corpus.
  • Standardized Go formatting with golines and gci, and resolved a formatter and lint failure in data/walk.go without changing runtime behavior.
  • Preserved CEK value arena chunks across script size changes with fixed 512-slot chunks, per-arena retention limits, bounded retention, and 16-run shrink hysteresis. This reduces bytes allocated by about 75% and single-threaded time by 6% per corpus pass.

Doc Holiday logo

Docs authored by Doc Holiday

Edit page

Last updated: