Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

splat should be lazier in its segment loading #331

Open
mkst opened this issue Jan 20, 2024 · 0 comments
Open

splat should be lazier in its segment loading #331

mkst opened this issue Jan 20, 2024 · 0 comments

Comments

@mkst
Copy link
Collaborator

mkst commented Jan 20, 2024

Currently all segments are loaded at startup which means all dependencies are required (e.g. crunch64, libgfxd) - even if the user does not use the segments that use them.

This is caused by the "from . import foo as foo" statements in the __init__.py scripts. These are not required when running splat as a library (the presence of the __init__.py is enough to let python load modules). An open question is whether these statements are required when using splat as a library.

If not, then these __init__.py files can be emptied and we'll get the lazy loading of segments that we want.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant