mirror of
https://github.com/slint-ui/slint.git
synced 2025-08-02 18:03:07 +00:00
![]() This allows us to cheaply copy the langtype::Type values which contain such a type. The runtime impact is small and barely noticable but a sampling profiler shows a clear reduction in samples pointing at langtype.rs, roughly reducing that from ~8.6% inclusive cost down to 6.6% inclusive cost. Furthermore, this allows us to share/intern common types. Before: ``` Benchmark 1: ./target/release/slint-viewer ../slint-perf/app.slint Time (mean ± σ): 1.089 s ± 0.026 s [User: 0.771 s, System: 0.216 s] Range (min … max): 1.046 s … 1.130 s 10 runs allocations: 3152149 ``` After: ``` Time (mean ± σ): 1.073 s ± 0.021 s [User: 0.759 s, System: 0.215 s] Range (min … max): 1.034 s … 1.105 s 10 runs allocations: 3074261 ``` |
||
---|---|---|
.. | ||
syntax | ||
typeloader | ||
consistent_styles.rs | ||
syntax_tests.rs |