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

chore(cpn): delay loading libsims #5778

Merged
merged 1 commit into from
Jan 15, 2025

Conversation

elecpower
Copy link
Collaborator

With ~40 libsims currently available, the application load time and resource consumption is a worsening issue. The current loading method was developed when there were < 10 libsims.

Summary of changes:

  • do not load, validate and unload all libsims during Companion start-up to reduce start-up time.
  • load libsims on demand to reduce total memory reserved (varies per OS)

Note: based on a comment in Qt QLibrary documentation, MacOS does not unload shared resources until the application is terminated therefore the current unload is ineffective.

@elecpower elecpower added companion Related to the companion software house keeping 🧹 Cleanup of code and house keeping labels Jan 13, 2025
@pfeerick pfeerick added this to the 2.11 milestone Jan 15, 2025
@pfeerick
Copy link
Member

LGTM on Windows. Should speed up Companion startup on my laptop a bit! :)

@pfeerick pfeerick merged commit 69bd407 into main Jan 15, 2025
3 checks passed
@pfeerick pfeerick deleted the elecpower/cpn-load-libsims-dynamically branch January 15, 2025 02:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
companion Related to the companion software house keeping 🧹 Cleanup of code and house keeping
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants