-
- Downloads
py: Replace stream_p with *stream_p in mp_obj_type_t.
This is to reduce ROM usage. stream_p is used in file and socket types only (at the moment), so seems a good idea to make the protocol functions a pointer instead of the actual structure. It saves 308 bytes of ROM in the stmhal/ port, 928 in unix/.
Showing
- py/obj.h 1 addition, 1 deletionpy/obj.h
- py/qstrdefs.h 1 addition, 0 deletionspy/qstrdefs.h
- py/stream.c 8 additions, 8 deletionspy/stream.c
- stm/qstrdefsport.h 0 additions, 1 deletionstm/qstrdefsport.h
- stmhal/file.c 8 additions, 5 deletionsstmhal/file.c
- stmhal/qstrdefsport.h 0 additions, 1 deletionstmhal/qstrdefsport.h
- unix/file.c 6 additions, 4 deletionsunix/file.c
- unix/modsocket.c 6 additions, 4 deletionsunix/modsocket.c
- unix/mpconfigport.h 0 additions, 1 deletionunix/mpconfigport.h
- unix/qstrdefsport.h 0 additions, 1 deletionunix/qstrdefsport.h
Loading
Please register or sign in to comment