slint/internal/interpreter
Milian Wolff 69c68b22b2 Also wrap langtype::Type::Struct in an Rc
This makes copying such types much cheaper and will allow us to
intern common struct types in the future too. This further
drops the sample cost for langtype.rs from ~6.6% down to 4.0%.

We are now also able to share/intern common struct types.

Before:
```
  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
```

After:
```
  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
```
2024-10-28 09:39:54 +01:00
..
LICENSES Simplify commercial license (#3063) 2024-05-31 14:06:17 +02:00
api.rs Also wrap langtype::Type::Struct in an Rc 2024-10-28 09:39:54 +01: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 Also wrap langtype::Type::Struct in an Rc 2024-10-28 09:39:54 +01:00
dynamic_type.rs Simplify commercial license (#3063) 2024-05-31 14:06:17 +02:00
eval.rs Also wrap langtype::Type::Struct in an Rc 2024-10-28 09:39:54 +01: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