diff options
| author | Damien George | 2015-01-07 23:38:50 +0000 |
|---|---|---|
| committer | Damien George | 2015-01-07 23:38:50 +0000 |
| commit | 3b51b3e90f1d513031ad2c6b6a2a0d5d391f753d (patch) | |
| tree | 6903d1a13bdc49860c325e531e81582beb6063bf /teensy | |
| parent | 7a0636e80aea2ce1af03c890e024dabcdffcdf78 (diff) | |
stmhal: Collect all root pointers together in 1 place.
A GC in stmhal port now only scans true root pointers, not entire BSS.
This reduces base GC time from 1700ms to 900ms.
Diffstat (limited to 'teensy')
| -rw-r--r-- | teensy/mpconfigport.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/teensy/mpconfigport.h b/teensy/mpconfigport.h index efe51fecd..63f0ee7b7 100644 --- a/teensy/mpconfigport.h +++ b/teensy/mpconfigport.h @@ -44,6 +44,14 @@ extern const struct _mp_obj_module_t time_module; #define MICROPY_PORT_CONSTANTS \ { MP_OBJ_NEW_QSTR(MP_QSTR_pyb), (mp_obj_t)&pyb_module }, \ +#define MP_STATE_PORT MP_STATE_VM + +#define MICROPY_PORT_ROOT_POINTERS \ + const char *readline_hist[8]; \ + mp_obj_t pin_class_mapper; \ + mp_obj_t pin_class_map_dict; \ + struct _pyb_uart_obj_t *pyb_stdio_uart; \ + // type definitions for the specific machine #define BYTES_PER_WORD (4) |
