-
Notifications
You must be signed in to change notification settings - Fork 24
Cache fonts for lower memory usage #32
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
Conversation
Test script I used:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested this successfully with the example script above. I had a different font on hand (arial 16) and I also added a few gc
checks and I am seeing reduced memory usage with the new version.
Looks good to me. Thanks for this efficiency boost!
I'm gonna merge this in. It'll be moved to PortalBase when I get some refactor PRs merged, so it doesn't matter too much. |
Updating https://github.com/adafruit/Adafruit_CircuitPython_SI7021 to 3.2.2 from 3.2.1: > Merge pull request adafruit/Adafruit_CircuitPython_SI7021#19 from FoamyGuy/remove_busio Updating https://github.com/adafruit/Adafruit_CircuitPython_SSD1306 to 2.10.0 from 2.9.2: > Merge pull request adafruit/Adafruit_CircuitPython_SSD1306#53 from adamcandy/add-64x32-suppoort Updating https://github.com/adafruit/Adafruit_CircuitPython_MagTag to 1.3.0 from 1.2.0: > Merge pull request adafruit/Adafruit_CircuitPython_MagTag#37 from anecdata/patch-1 > Merge pull request adafruit/Adafruit_CircuitPython_MagTag#36 from ladyada/rotate > Merge pull request adafruit/Adafruit_CircuitPython_MagTag#33 from adafruit/3.3-battery-voltage > Merge pull request adafruit/Adafruit_CircuitPython_MagTag#32 from makermelissa/fontcache
verified that its about 50% faster now! |
No description provided.