stacks-network / clarity-wasm

`clar2wasm` is a compiler for generating WebAssembly from Clarity.
GNU General Public License v3.0
12 stars 12 forks source link

Split property code generation for `get-(burn-)block-info?` #430

Open Acaccia opened 3 months ago

Acaccia commented 3 months ago

The functions get-block-info? or get-burn-block-info? take a property as the first argument. For now, this property is parsed at runtime.

We should optimize this by parsing the property at compile time and generating only the code needed for retrieving the property info.