diff options
author | Damien George <damien.p.george@gmail.com> | 2018-06-29 16:32:58 +1000 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2018-07-02 15:30:57 +1000 |
commit | b488a4a8480533a6a3c9468c2f8bd359c94d4d02 (patch) | |
tree | 709b6ca9495c832856f54e03bc4db3055c861cb0 /py/objrange.c | |
parent | 8f86fbfd6c34a4d03f2bd62e9dc1ff59c236b037 (diff) | |
download | micropython-b488a4a8480533a6a3c9468c2f8bd359c94d4d02.tar.gz micropython-b488a4a8480533a6a3c9468c2f8bd359c94d4d02.zip |
py/objgenerator: Eliminate need for mp_obj_gen_wrap wrapper instances.
For generating functions there is no need to wrap the bytecode function in
a generator wrapper instance. Instead the type of the bytecode function
can be changed to mp_type_gen_wrap. This reduces code size and saves a
block of GC heap RAM for each generator.
Diffstat (limited to 'py/objrange.c')
0 files changed, 0 insertions, 0 deletions