mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-04 18:58:36 +00:00
![]() These are known statically, so let's store them once in thread local statics and return them from there. Before: ``` Time (mean ± σ): 1.034 s ± 0.026 s [User: 0.733 s, System: 0.201 s] Range (min … max): 1.000 s … 1.078 s 10 runs allocations: 2917476 ``` After: ``` Time (mean ± σ): 996.9 ms ± 17.7 ms [User: 708.9 ms, System: 202.9 ms] Range (min … max): 977.8 ms … 1033.1 ms 10 runs allocations: 2686677 ``` |
||
---|---|---|
.. | ||
backends | ||
common | ||
compiler | ||
core | ||
core-macros | ||
interpreter | ||
renderers |