slint/internal/compiler
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
..
generator Experimental support for MenuBar 2024-11-20 09:25:37 +01:00
LICENSES Simplify commercial license (#3063) 2024-05-31 14:06:17 +02:00
llr Avoid inlining @image-url() expressions that can be expensive due to cache misses 2024-11-27 09:10:26 +01:00
lookup Replace compiler dependency on css-color-parser crate 2024-07-29 13:13:53 +02:00
parser Fix parsing of unfinished import statement 2024-10-22 09:35:46 +02:00
parser-test-macro API review of the slint interpreter Compiler api 2024-07-05 17:20:08 +02:00
passes compiler: Put the argument names in the Type 2024-11-21 09:53:17 +01:00
tests compiler: Put the argument names in the Type 2024-11-21 09:53:17 +01:00
widgets Szecket/cupertino colours (#6801) 2024-11-22 08:18:27 +13:00
build.rs Simplify commercial license (#3063) 2024-05-31 14:06:17 +02:00
builtin_macros.rs added min/max support for rem (#6842) 2024-11-20 10:19:28 +00:00
builtins.slint Give name to the builtin element's callback argument 2024-11-21 09:53:17 +01:00
Cargo.toml Bundle translations (#6661) 2024-10-29 15:07:15 +01:00
diagnostics.rs LSP: record dependencies and invalid all dependents when a dependencies changes 2024-11-14 14:35:22 +01:00
embedded_resources.rs Signed DistanceField font rendering in swrenderer 2024-10-23 09:12:30 +02:00
expression_tree.rs compiler: Put the argument names in the Type 2024-11-21 09:53:17 +01:00
fileaccess.rs Widget style: simplify -light/-dark handling 2024-08-20 16:55:15 +02:00
generator.rs bundled translation: Better error reporting 2024-11-19 21:34:42 +01:00
langtype.rs compiler: Put the argument names in the Type 2024-11-21 09:53:17 +01:00
layout.rs Reduce SmolStr <-> &str conversions and copies (#6688) 2024-11-19 10:07:16 +01:00
lexer.rs Simplify commercial license (#3063) 2024-05-31 14:06:17 +02:00
lib.rs LSP: record dependencies and invalid all dependents when a dependencies changes 2024-11-14 14:35:22 +01:00
literals.rs Use SmolStr in more places of the compiler infrastructure 2024-10-17 18:04:58 +02:00
llr.rs Bundle translations (#6661) 2024-10-29 15:07:15 +01:00
load_builtins.rs compiler: Put the argument names in the Type 2024-11-21 09:53:17 +01:00
lookup.rs Reduce SmolStr <-> &str conversions and copies (#6688) 2024-11-19 10:07:16 +01:00
namedreference.rs Reduce SmolStr <-> &str conversions and copies (#6688) 2024-11-19 10:07:16 +01:00
object_tree.rs Callback arguments names is no longer experimental 2024-11-21 09:53:17 +01:00
parser.rs Use SmolStr in more places of the compiler infrastructure 2024-10-17 18:04:58 +02:00
passes.rs Experimental support for MenuBar 2024-11-20 09:25:37 +01:00
pathutils.rs Use SmolStr for parts of pathutils to remove temporary allocations 2024-10-17 18:04:58 +02:00
README.md Simplify commercial license (#3063) 2024-05-31 14:06:17 +02:00
typeloader.rs LSP: fix reloading loaded dependencies 2024-11-26 14:27:56 +01:00
typeregister.rs compiler: Put the argument names in the Type 2024-11-21 09:53:17 +01:00

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.