Search found 1 match
- Thu Jun 03, 2021 1:40 pm
- Forum: Development of MicroPython
- Topic: Slow qstr lookup in mp_obj_str_make_new
- Replies: 0
- Views: 1238
Slow qstr lookup in mp_obj_str_make_new
Our codebase is rather big and has ~10000 qstrs. This means that, since qstr_find_strn does a linear search, it takes a long time. And if the code is creating a lot of new strings via mp_obj_str_make_new, then qstr_find_strn could run a lot. In fact, at some point the hardware was spending ~33% of r...