slint/internal/interpreter
Milian Wolff e3741a87f6
Only build the RTTI hashmap once per thread (#6617)
This removes a lot of temporary allocations, note e.g. how this
was called once per component previously yet the data contained
in the map was always the same!

Before:
```
Benchmark 1: ./target/release/slint-viewer ../slint-perf/app.slint
  Time (mean ± σ):     636.2 ms ±  20.0 ms    [User: 563.4 ms, System: 71.8 ms]
  Range (min … max):   615.2 ms … 657.9 ms    10 runs

        allocations:            3371939
```

After:
```
Benchmark 1: ./target/release/slint-viewer ../slint-perf/app.slint
  Time (mean ± σ):     600.6 ms ±   2.9 ms    [User: 522.0 ms, System: 74.4 ms]
  Range (min … max):   596.3 ms … 605.2 ms    10 runs

        allocations:            2917930
```
2024-10-22 18:01:33 +02:00
..
LICENSES Simplify commercial license (#3063) 2024-05-31 14:06:17 +02:00
api.rs Use SmolStr in more places of the compiler infrastructure 2024-10-17 18:04:58 +02:00
Cargo.toml Interpreter: on wasm, check the user agent to resolve the native style 2024-10-17 18:05:38 +02:00
dynamic_item_tree.rs Only build the RTTI hashmap once per thread (#6617) 2024-10-22 18:01:33 +02:00
dynamic_type.rs Simplify commercial license (#3063) 2024-05-31 14:06:17 +02:00
eval.rs Use SmolStr in more places of the compiler infrastructure 2024-10-17 18:04:58 +02:00
eval_layout.rs Simplify commercial license (#3063) 2024-05-31 14:06:17 +02:00
ffi.rs interpreter: Mark ComponentCompiler as deprecated 2024-07-04 12:47:54 +02:00
global_component.rs Support for changed callback in global 2024-10-22 09:26:48 +02:00
highlight.rs Use SmolStr in more places of the compiler infrastructure 2024-10-17 18:04:58 +02:00
lib.rs doc: Fix intro that claimed that Compiler provided ComponentDefinition 2024-07-17 11:20:27 +02:00
migration.rs Simplify commercial license (#3063) 2024-05-31 14:06:17 +02:00
tests.rs API review of the slint interpreter Compiler api 2024-07-05 17:20:08 +02:00
value_model.rs Simplify commercial license (#3063) 2024-05-31 14:06:17 +02:00