awto/effectfuljs

Lazy instrumentation

awto opened this issue · 0 comments

awto commented

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.