diff options
author | Damien George <damien.p.george@gmail.com> | 2016-09-30 12:45:00 +1000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2016-09-30 12:45:00 +1000 |
commit | d5495966cea38f452646b2f171859f66bebcf05e (patch) | |
tree | a52f75fde5c9bfb47bd75599a1cfda410aec85f8 /py/scope.c | |
parent | 3dea8c9e926d0c1b1049ff9d5abeedfb001fc201 (diff) | |
download | micropython-d5495966cea38f452646b2f171859f66bebcf05e.tar.gz micropython-d5495966cea38f452646b2f171859f66bebcf05e.zip |
py/scope: Shrink scope_t struct by 1 machine word.
On 32-bit archs this makes the scope_t struct 48 bytes in size, which fits
in 3 GC blocks (previously it used 4 GC blocks). This will lead to some
savings when compiling scripts because there are usually quite a few scopes,
one for each function and class.
Note that qstrs will fit in 16 bits, this assumption is made in a few other
places.
Diffstat (limited to 'py/scope.c')
0 files changed, 0 insertions, 0 deletions