-
- Downloads
py: Optimise lexer by exposing lexer type.
mp_lexer_t type is exposed, mp_token_t type is removed, and simple lexer functions (like checking current token kind) are now inlined. This saves 784 bytes ROM on 32-bit unix, 348 bytes on stmhal, and 460 bytes on bare-arm. It also saves a tiny bit of RAM since mp_lexer_t is a bit smaller. Also will run a bit more efficiently.
Showing
- bare-arm/main.c 1 addition, 1 deletionbare-arm/main.c
- py/builtinimport.c 1 addition, 1 deletionpy/builtinimport.c
- py/lexer.c 57 additions, 98 deletionspy/lexer.c
- py/lexer.h 25 additions, 17 deletionspy/lexer.h
- py/lexerstr.c 2 additions, 0 deletionspy/lexerstr.c
- py/lexerunix.c 1 addition, 0 deletionspy/lexerunix.c
- py/parse.c 29 additions, 29 deletionspy/parse.c
- py/parsehelper.c 2 additions, 2 deletionspy/parsehelper.c
- py/runtime.c 1 addition, 1 deletionpy/runtime.c
- stmhal/pyexec.c 1 addition, 1 deletionstmhal/pyexec.c
- unix/main.c 3 additions, 3 deletionsunix/main.c
Loading
Please register or sign in to comment