You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 789b94f
Browse filesBrowse the repository at this point in the historyBrowse files
perf(rust): the fresh runtime is made once per process and copied by each run (#85)
* perf(rust): the fresh runtime is made once per process and copied by each run
A run built about 290 built-in objects, 380 strings and 250 names from scratch,
whatever its program: 352k instructions, most of what a short program cost.
builtins::image() makes them once. Every compile starts from its strings
(Strings::fresh), so they have the same ids in every run, and Vm::new copies
its heap instead of running setup. A VM whose strings did not start from the
image is still set up from scratch, as the image is.
Also sizes a fresh run's arenas for what it makes (286 objects, not room for
1,024), and has the compiler note whether the program names 'constructor',
which the string table no longer says.
examples/corpus: 15.88M to 11.91M instructions; setup 352k to 100k.
return 1: 360k to 111k. Idle waiting run: 154.7 to 84.5 KB.
* fix(rust): snapshot format 3, so a state saved by 0.1.2 or earlier is refused instead of misread
Program strings now come after the image's (Strings::fresh), so a state from an earlier build can decode a string
id as a different string while its build id still matches. The format bump changes the build id too.
---------
Co-authored-by: Sebastian Herrlinger <hasta84@gmail.com>
0 commit comments