-
- Downloads
py: Add mp_obj_new_str_from_vstr, and use it where relevant.
This patch allows to reuse vstr memory when creating str/bytes object. This improves memory usage. Also saves code ROM: 128 bytes on stmhal, 92 bytes on bare-arm, and 88 bytes on unix x64.
Showing
- py/misc.h 0 additions, 2 deletionspy/misc.h
- py/modbuiltins.c 4 additions, 5 deletionspy/modbuiltins.c
- py/obj.h 1 addition, 0 deletionspy/obj.h
- py/objexcept.c 4 additions, 4 deletionspy/objexcept.c
- py/objstr.c 58 additions, 57 deletionspy/objstr.c
- py/objstrunicode.c 6 additions, 10 deletionspy/objstrunicode.c
- py/stream.c 9 additions, 11 deletionspy/stream.c
- py/vstr.c 0 additions, 20 deletionspy/vstr.c
Loading
Please register or sign in to comment