Is your feature request related to a problem? Please describe.
Currently a default unit registry is instantiated on import. This takes 1s even if no unit ops are performed. For CLI operations this can make things sluggish.
Describe the solution you'd like
The unit registry is lazily initialised when the first unit operation is needed. ScmUnitRegistry would become a proxy to the underlying registry and control the initialisation.
Describe alternatives you've considered
Remove openscm_units.unit_registry.
Is your feature request related to a problem? Please describe.
Currently a default unit registry is instantiated on import. This takes 1s even if no unit ops are performed. For CLI operations this can make things sluggish.
Describe the solution you'd like
The unit registry is lazily initialised when the first unit operation is needed.
ScmUnitRegistrywould become a proxy to the underlying registry and control the initialisation.Describe alternatives you've considered
Remove
openscm_units.unit_registry.