-
- Downloads
py/objstr: Remove "make_qstr_if_not_already" arg from mp_obj_new_str.
This patch simplifies the str creation API to favour the common case of creating a str object that is not forced to be interned. To force interning of a new str the new mp_obj_new_str_via_qstr function is added, and should only be used if warranted. Apart from simplifying the mp_obj_new_str function (and making it have the same signature as mp_obj_new_bytes), this patch also reduces code size by a bit (-16 bytes for bare-arm and roughly -40 bytes on the bare-metal archs).
Showing
- extmod/modujson.c 1 addition, 1 deletionextmod/modujson.c
- extmod/modwebrepl.c 1 addition, 1 deletionextmod/modwebrepl.c
- extmod/vfs_fat.c 1 addition, 1 deletionextmod/vfs_fat.c
- extmod/vfs_fat_misc.c 1 addition, 1 deletionextmod/vfs_fat_misc.c
- extmod/vfs_reader.c 1 addition, 1 deletionextmod/vfs_reader.c
- lib/netutils/netutils.c 1 addition, 1 deletionlib/netutils/netutils.c
- ports/cc3200/mods/modwlan.c 5 additions, 5 deletionsports/cc3200/mods/modwlan.c
- ports/esp8266/modnetwork.c 2 additions, 2 deletionsports/esp8266/modnetwork.c
- ports/esp8266/moduos.c 1 addition, 1 deletionports/esp8266/moduos.c
- ports/stm32/modnwcc3k.c 2 additions, 2 deletionsports/stm32/modnwcc3k.c
- ports/unix/coverage.c 3 additions, 3 deletionsports/unix/coverage.c
- ports/unix/main.c 3 additions, 3 deletionsports/unix/main.c
- ports/unix/modffi.c 1 addition, 1 deletionports/unix/modffi.c
- ports/unix/modjni.c 1 addition, 1 deletionports/unix/modjni.c
- ports/unix/modos.c 2 additions, 2 deletionsports/unix/modos.c
- ports/zephyr/modusocket.c 1 addition, 1 deletionports/zephyr/modusocket.c
- py/binary.c 1 addition, 1 deletionpy/binary.c
- py/builtinhelp.c 1 addition, 1 deletionpy/builtinhelp.c
- py/builtinimport.c 1 addition, 1 deletionpy/builtinimport.c
- py/modbuiltins.c 2 additions, 2 deletionspy/modbuiltins.c
Loading
Please register or sign in to comment