Skip to content

Improve loading time #13

@wasertech

Description

@wasertech

On compilation (on build) we could precompute version and help localisations in PO files and complie them to MO so that we can effectively cache the translation, therefore allowing us to skip loading all the lib to load the model and the model itself on startup when it isn't needed. This will dramatically lower boot time when you only need to get common options like help or version. This will also avoid having to load heavy libraries when we want to test small unrelated parts of the code.
Note: we would need a --no-cache flag (like the --force one for --po mode maybe look at merging them into a global one for simplicity) to not use the cache but test model translation is working.

Sub-issues

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions