optimized python memory usage by disabling unused modules#55
Open
niklasarnitz wants to merge 1 commit intoOpenCentauri:mainfrom
Open
optimized python memory usage by disabling unused modules#55niklasarnitz wants to merge 1 commit intoOpenCentauri:mainfrom
niklasarnitz wants to merge 1 commit intoOpenCentauri:mainfrom
Conversation
Collaborator
|
This looks exciting! |
Collaborator
|
Well it doesn't seem to cause any regressions which is great! As I'm not a super python geek, is there a way that I can check that python is actually using the pre-compiled .pyc bitcode? I guess I could try removing all the .py files just to test, but you said that there was still some dependency on the .py file iirc? |
Collaborator
|
Removing the unused python modules just saves us some disk space if we aren't importing them at runtime right? Or did I miss something? |
Contributor
|
So i tested #70 with -OO, this makes klippy crash during boot :( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Proof of concept to reduce the memory footprint of python.
I can't test it on my printer at the moment since I'm on vacation now.
But it builds.