1
0
mirror of https://github.com/trezor/trezor-firmware.git synced 2025-05-30 20:58:46 +00:00
trezor-firmware/core/embed
Roman Zeyde 879cc69c63 perf(core): intern non-alphanumeric characters
It was found by running `micropython.mem_info()` with the following patch:
```diff
diff --git a/py/gc.c b/py/gc.c
index 604334c95..bff62b754 100644
--- a/py/gc.c
+++ b/py/gc.c
@@ -840,6 +840,7 @@ void gc_dump_info(void) {
         (uint)info.total, (uint)info.used, (uint)info.free);
     mp_printf(&mp_plat_print, " No. of 1-blocks: %u, 2-blocks: %u, max blk sz: %u, max free sz: %u\n",
         (uint)info.num_1block, (uint)info.num_2block, (uint)info.max_block, (uint)info.max_free);
+    qstr_dump_data();
 }

 void gc_dump_alloc_table(void) {
```

New QSTR definitions:
```
$ tail -n4 ./core/build/unix/genhdr/qstrdefs.generated.h
QDEF(MP_QSTR__paren_close_, 46476, 1, ")")
QDEF(MP_QSTR__paren_open_, 46477, 1, "(")
QDEF(MP_QSTR__lt_, 46489, 1, "<")
QDEF(MP_QSTR__semicolon_, 46494, 1, ";")
```

[no changelog]
2025-04-07 20:19:31 +03:00
..
gfx feat(core): emulate hw jpeg decoder using libjpeg 2025-04-04 12:59:44 +02:00
io fix(core): improve simulation of lost TOUCH_START events 2025-04-07 17:49:04 +02:00
models feat(core): fix out-of-range touch coordinates on T3W1 2025-04-07 17:49:04 +02:00
projects fix(core/prodtest): provide BLE driver with pairing code when accepting pairing 2025-04-07 15:05:57 +02:00
rtl refactor(core/prodtest): make cli non-blocking, event-loop compatible 2025-04-03 16:06:20 +02:00
rust feat(core): introduce JpegOverlay shape 2025-04-04 12:59:44 +02:00
sec fix(core): allow running firmware on locked bootloader device based on allow_run_with_secret flag 2025-04-03 18:59:52 +02:00
sys feat(core): Update stwlc38 patching cut selection + new stwlc38 FW patch and configs [no changelog] 2025-04-07 13:42:10 +02:00
upymod perf(core): intern non-alphanumeric characters 2025-04-07 20:19:31 +03:00
util feat(core/prodtest): add hw-revision command and driver 2025-03-03 13:28:10 +01:00