Dazo-org/zerovm — Issue #13: Daemon
Author: camuel
Created: 2011-11-29 23:48:25+00:00
State: open
Labels: MINOR, REQUIRES_SWIFT_CHANGE

Now on every request brand new ZeroVM instance is spawned in clean process. This requires doing full ZeroVM setup/initialization for every request.

If ZeroVM would be daemon that already did setup and initialization and then spawned threads or processes (with clone/fork) and reused in the spawned thread/process all the setup/initialization work, that could boost efficiency and lower latency.

However, the initialization and setup of ZeroVM is really very small so the gain from this optimization is little and it does introduce complexity and breaks the simplicity of current solution.

The question is if the optimization is worth doing and if yes then when? So it will not follow the anti-pattern of pre-mature optimization.