o3bvv / isotopic-logging

Mark and trace events in your log alike isotopic labeling.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Create prefix injectors only when it's necessary

o3bvv opened this issue · comments

Currently we always pass an instance of injector to context manager. This is not good, as in case of nested scopes that instance will never be used. In addition, in case of autoprefix_injector and hybrid_injector an extra call to prefix generator will be made.

Prefix injectors must be created lazily, only when a new scope is defined.