mirror of
https://github.com/slint-ui/slint.git
synced 2025-11-02 04:48:27 +00:00
* optimize: use jemalloc for slint-viewer The lots of allocations are slowing down slint-viewer. By using the faster jemalloc, we get a significant time boost on Linux at least, where I can observe a 15% time reduction: Before: ``` Time (mean ± σ): 936.6 ms ± 13.5 ms [User: 688.8 ms, System: 191.1 ms] Range (min … max): 918.9 ms … 955.6 ms 10 runs ``` After: ``` Time (mean ± σ): 794.8 ms ± 16.2 ms [User: 645.4 ms, System: 99.2 ms] Range (min … max): 755.0 ms … 810.7 ms 10 runs ``` * optimize: also use jemalloc for slint-compiler As with the slint-viewer, we can observe a drastic time improvement of around 13% when using jemalloc for slint-compiler: Before: ``` Time (mean ± σ): 772.8 ms ± 9.2 ms [User: 633.5 ms, System: 136.5 ms] Range (min … max): 763.3 ms … 787.8 ms 10 runs ``` After: ``` Time (mean ± σ): 672.5 ms ± 13.5 ms [User: 610.4 ms, System: 60.1 ms] Range (min … max): 655.1 ms … 700.7 ms 10 runs ``` * optimize: also use jemalloc for slint-lsp The impact here was not measured, but it should be in a similar ballpark to the slint-compiler and slint-viewer, and thus quite noticeable in practice. |
||
|---|---|---|
| .. | ||
| compiler | ||
| docsnapper | ||
| figma-inspector | ||
| figma_import | ||
| lsp | ||
| slintpad | ||
| tr-extractor | ||
| updater | ||
| viewer | ||