starlight icon indicating copy to clipboard operation
starlight copied to clipboard

Lazy compilation (replacement to snapshots)

Open playXE opened this issue 4 years ago • 0 comments

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

playXE avatar Aug 05 '21 16:08 playXE