Skip to content

Rename the constants to be private. #2

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

Merged
merged 1 commit into from
Jul 27, 2021

Conversation

lesamouraipourpre
Copy link
Contributor

Based on a comment on the Scott & Jimmo deep-dive stream, private constants get treated different and use less space in the .mpy file because of not having to store the name of the constant.

CircuitPython 6 MPY
Before 6595 bytes
After  6113 bytes
Saving  482 bytes

CircuitPython 7 MPY
Before 3671 bytes
After  3234 bytes
Saving  437 bytes

Based on a comment on the Scott & Jimmo deep-dive stream, private
constants get treated different and use less space in the .mpy file
because of not having to store the name of the constant.

CircuitPython 6 MPY
Before 6595 bytes
After  6113 bytes
Saving  482 bytes

CircuitPython 7 MPY
Before 3671 bytes
After  3234 bytes
Saving  437 bytes
@ladyada ladyada merged commit 9d60097 into adafruit:main Jul 27, 2021
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Aug 4, 2021
Updating https://github.com/adafruit/Adafruit_CircuitPython_MCP230xx to 2.5.0 from 2.4.6:
  > Merge pull request adafruit/Adafruit_CircuitPython_MCP230xx#41 from Red-M/master
  > Moved default branch to main
  > Moved CI to Python 3.7

Updating https://github.com/adafruit/Adafruit_CircuitPython_SCD4X to 1.1.0 from 1.0.0:
  > Merge pull request adafruit/Adafruit_CircuitPython_SCD4X#2 from lesamouraipourpre/constants
  > Merge pull request adafruit/Adafruit_CircuitPython_SCD4X#4 from lesamouraipourpre/docs

Updating https://github.com/adafruit/Adafruit_CircuitPython_SGP40 to 1.2.0 from 1.1.0:
  > Merge pull request adafruit/Adafruit_CircuitPython_SGP40#6 from caternuson/iss5

Updating https://github.com/adafruit/Adafruit_CircuitPython_MacroPad to 1.3.0 from 1.2.0:
  > Merge pull request adafruit/Adafruit_CircuitPython_MacroPad#15 from kattni/rotation
  > Merge pull request adafruit/Adafruit_CircuitPython_MacroPad#14 from kattni/display-image-fix

Updating https://github.com/adafruit/Adafruit_CircuitPython_Simple_Text_Display to 1.2.0 from 1.1.0:
  > Merge pull request adafruit/Adafruit_CircuitPython_Simple_Text_Display#6 from terop/fix_doc_typo
  > Merge pull request adafruit/Adafruit_CircuitPython_Simple_Text_Display#5 from lesamouraipourpre/adaptive-row-height

Updating https://github.com/adafruit/Adafruit_CircuitPython_Bundle/circuitpython_library_list.md to NA from NA:
  > Added the following libraries: Adafruit_CircuitPython_IS31FL3741
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 this pull request may close these issues.

2 participants