slint/internal/compiler/tests
Milian Wolff efdecf0a13 Wrap langtype::Type::{Callback,Function} data in an Rc
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
```
2024-10-28 09:39:54 +01:00
..
syntax PopupWindow: added close-policy property (#6614) 2024-10-24 09:27:39 +00:00
typeloader Avid reporting further error when an element is misspelled 2024-08-29 13:10:35 +02:00
consistent_styles.rs Wrap langtype::Type::{Callback,Function} data in an Rc 2024-10-28 09:39:54 +01:00
syntax_tests.rs Fix parsing of unfinished import statement 2024-10-22 09:35:46 +02:00