effectfuljs icon indicating copy to clipboard operation
effectfuljs copied to clipboard

Lazy instrumentation

Open awto opened this issue 5 years ago • 0 comments

During debugging it is highly unlikely all the functions from the application are called. To reduce compilation time the babel plugin on the first stage could just apply for closure conversion pass, and all the rest is done on the first function's call lazily.

This way if not in debugging mode it can run original functions without instrumentation, almost without any performance loss.

awto avatar Apr 13 '20 18:04 awto