mirror of
https://github.com/trezor/trezor-firmware.git
synced 2025-06-25 09:22:33 +00:00
perf(core): intern single-digit strings
[no changelog]
This commit is contained in:
parent
bafad6e453
commit
ac0fc30ee9
@ -5,6 +5,16 @@
|
|||||||
#pragma GCC diagnostic ignored "-Wunused-function"
|
#pragma GCC diagnostic ignored "-Wunused-function"
|
||||||
|
|
||||||
static void _librust_qstrs(void) {
|
static void _librust_qstrs(void) {
|
||||||
|
MP_QSTR_0;
|
||||||
|
MP_QSTR_1;
|
||||||
|
MP_QSTR_2;
|
||||||
|
MP_QSTR_3;
|
||||||
|
MP_QSTR_4;
|
||||||
|
MP_QSTR_5;
|
||||||
|
MP_QSTR_6;
|
||||||
|
MP_QSTR_7;
|
||||||
|
MP_QSTR_8;
|
||||||
|
MP_QSTR_9;
|
||||||
MP_QSTR_;
|
MP_QSTR_;
|
||||||
MP_QSTR_ATTACHED;
|
MP_QSTR_ATTACHED;
|
||||||
MP_QSTR_AttachType;
|
MP_QSTR_AttachType;
|
||||||
|
@ -45,9 +45,13 @@ for prefix in ALTCOIN_PREFIXES:
|
|||||||
qstrings_btconly = qstrings - qstrings_universal
|
qstrings_btconly = qstrings - qstrings_universal
|
||||||
|
|
||||||
# sort result alphabetically
|
# sort result alphabetically
|
||||||
|
digits = range(10)
|
||||||
qstrings_btconly_sorted = sorted(qstrings_btconly)
|
qstrings_btconly_sorted = sorted(qstrings_btconly)
|
||||||
qstrings_universal_sorted = sorted(qstrings_universal)
|
qstrings_universal_sorted = sorted(qstrings_universal)
|
||||||
%>\
|
%>\
|
||||||
|
% for digit in digits:
|
||||||
|
MP_QSTR_${digit};
|
||||||
|
% endfor
|
||||||
% for qstr in qstrings_btconly_sorted:
|
% for qstr in qstrings_btconly_sorted:
|
||||||
${qstr};
|
${qstr};
|
||||||
% endfor
|
% endfor
|
||||||
|
Loading…
Reference in New Issue
Block a user