starlight
starlight copied to clipboard
Lazy compilation (replacement to snapshots)
Snapshots are cool but they tend to consume some heap memory and require a fully initialized heap. When we will switch to Comet as our GC we should replace snapshots with lazy init.
Pros:
- Same fast startup time
- Less memory consumption. Memory is allocated on demand
- Simplify code base. Snapshots require a lot of maintenance and it is quite hard to debug them.
Cons:
- No way to create a fully initialized VM instance on the fly