slint/internal/compiler/llr/optim_passes
Simon Hausmann 0d8b0630c7 Avoid inlining @image-url() expressions that can be expensive due to cache misses
If the `image-url()` expression of an `Image { source: @image-url("large-image.png"); ... }` gets inlined into geometry getters and other places that are called for every frame, then we might end up decoding images every frame, if the image isn't in the 5MB image decoder cache. It's better to rely on the `property <image>` of the `Image` for caching the decoded image, so don't inline those.

This fixes CPU being time being spent constantly on decoding images on the home automation lock screen.
2024-11-27 09:10:26 +01:00
..
count_property_use.rs compiler: Fix a couple of clippy issues 2024-08-26 08:45:52 +02:00
inline_expressions.rs Avoid inlining @image-url() expressions that can be expensive due to cache misses 2024-11-27 09:10:26 +01:00