From b1ac266bb5cd0fcfa53539cb3230e7b3f323a09b Mon Sep 17 00:00:00 2001 From: Matt Trentini Date: Mon, 29 Apr 2024 09:18:03 +1000 Subject: [PATCH] docs/develop/optimizations: Fix typo identified in issue 14391. Signed-off-by: Matt Trentini --- docs/develop/optimizations.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/develop/optimizations.rst b/docs/develop/optimizations.rst index 7f2c8cbe7..533dd6411 100644 --- a/docs/develop/optimizations.rst +++ b/docs/develop/optimizations.rst @@ -33,7 +33,7 @@ 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 (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 within the Python stack, which is more efficient than a global lookup in a dict.