Memory Optimisation & const() #10119
Unanswered
Beormund
asked this question in
Using MicroPython
Replies: 1 comment
-
The _t = const((1, 2, 3)) Without the foo(_t) would be compiled as foo((1, 2, 3)) In other words, |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
If I have a lookup like so:
How can I best utilise const() to optimise RAM use? Do I first have to declare _on = const('on') and then use _on as a dictionary key? Same with values?
With regards to long strings, would there be any advantage to declaring XML strings like so:
And is this the correct way to declare a const tuple?
Beta Was this translation helpful? Give feedback.
All reactions