mirror of
https://github.com/slint-ui/slint.git
synced 2025-12-15 21:45:24 +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
```
|
||
|---|---|---|
| .. | ||
| generator | ||
| LICENSES | ||
| llr | ||
| lookup | ||
| parser | ||
| parser-test-macro | ||
| passes | ||
| tests | ||
| widgets | ||
| build.rs | ||
| builtin_macros.rs | ||
| builtins.slint | ||
| Cargo.toml | ||
| diagnostics.rs | ||
| embedded_resources.rs | ||
| expression_tree.rs | ||
| fileaccess.rs | ||
| generator.rs | ||
| langtype.rs | ||
| layout.rs | ||
| lexer.rs | ||
| lib.rs | ||
| literals.rs | ||
| llr.rs | ||
| load_builtins.rs | ||
| lookup.rs | ||
| namedreference.rs | ||
| object_tree.rs | ||
| parser.rs | ||
| passes.rs | ||
| pathutils.rs | ||
| README.md | ||
| typeloader.rs | ||
| typeregister.rs | ||
The Slint Compiler Library
NOTE: This library is an internal crate of the Slint project.
This crate should not be used directly by applications using Slint.
You should use the slint crate instead.
WARNING: This crate does not follow the semver convention for versioning and can
only be used with version = "=x.y.z" in Cargo.toml.