the.bay.news

Running AST directly (for scripts), bypassing parsing; deserialize ok in the sysimage?

Julia Programming Language
Running AST directly (for scripts), bypassing parsing; deserialize ok in the sysimage?
In short it’s faster to run the abstract syntax tree (AST) than parse a script. I was testing with: However it’s not because currently: $ hyperfine 'julia +1.13 -e "using Serialization; forms = deserialize(\"input.jast\")" >/dev/null' 708.8-191.2 = 517.6 ms after accounting for startup. But deserialize only costs 0.3935 ms (35% faster than parsing the code, if I recall) but because of the precomilation overhead it’s much more now, shown by: $ hyperfine 'julia +1.13 -e "using Serialization...

0 comments

Sign in to join the discussion — your thebay.events account works here.

No comments yet.