mirror of
https://github.com/W3SLAV/micropython.git
synced 2025-06-19 12:05:32 -04:00
docs/develop/optimizations: Fix typo identified in issue 14391.
Signed-off-by: Matt Trentini <matt.trentini@gmail.com>
This commit is contained in:
parent
e60e8079a7
commit
b1ac266bb5
@ -33,7 +33,7 @@ Variables
|
|||||||
MicroPython processes local and global variables differently. Global variables
|
MicroPython processes local and global variables differently. Global variables
|
||||||
are stored and looked up from a global dictionary that is allocated on the heap
|
are stored and looked up from a global dictionary that is allocated on the heap
|
||||||
(note that each module has its own separate dict, so separate namespace).
|
(note that each module has its own separate dict, so separate namespace).
|
||||||
Local variables on the other hand are are stored on the Python value stack, which may
|
Local variables on the other hand are stored on the Python value stack, which may
|
||||||
live on the C stack or on the heap. They are accessed directly by their offset
|
live on the C stack or on the heap. They are accessed directly by their offset
|
||||||
within the Python stack, which is more efficient than a global lookup in a dict.
|
within the Python stack, which is more efficient than a global lookup in a dict.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user