mirror of
https://github.com/slint-ui/slint.git
synced 2025-07-24 13:35:00 +00:00
![]() We use `const` for the embedded data, which doesn't guarantee a fixed location in memory. For the image cache when embedding (encoded) image data, we rely on a fixed address. I observed that in debug builds of the slide puzzle, the embedded data is not always reported to be at the same address, presumably due to inlining. This makes the theme switching a bit slower and the cache less efficient. This patch fixes that by using static instead of const, to guarantee a fixed location in memory. (This was not observed in release builds, but in theory it could happen there as well?) |
||
---|---|---|
.. | ||
generator | ||
LICENSES | ||
llr | ||
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 | ||
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.