Cache fonts and file reads to speed up compiles

This commit is contained in:
2026-07-18 20:07:56 -04:00
parent 1f9d08920c
commit eea352a87d
3 changed files with 74 additions and 27 deletions
+1 -1
View File
@@ -245,7 +245,7 @@ pub fn asset_files(app: &AppHandle, store: &Store) -> HashMap<String, Vec<u8>> {
if name.starts_with('.') {
continue;
}
if let Ok(data) = std::fs::read(entry.path()) {
if let Some(data) = crate::workspace::read_file_cached(&entry.path()) {
files.insert(name, data);
}
}