Skip to content

LightCraft: An open-source non-destructive photo editor written by scratch in pure Rust

Merge PR #2423: PERF-SMART: test a smart album's rules cheapest first

aionggbc60bc521f4f
diff --cc docs/whats-new.md
index aa230464b,a271c066d..f173e3fd2
--- a/docs/whats-new.md
+++ b/docs/whats-new.md
@@@ -168,12 -157,14 +168,20 @@@
the full count took about 14 s instead of about 23 s on a heavily loaded machine; the rest is the text rules of
the albums themselves. The counts are the same as before, including for albums that loop through each other.
+### Selection rings you can see in the light themes
+- The active photo's white outline vanished on Silver and Paper's light grid, and told the active photo from the other
+ selected ones by lightness alone. Now the active photo has a heavier ring (3 pt, with a thin line against the photo so
+ it also shows on a white one) and the other selected photos a lighter one (1.5 pt), in colours each theme picks to
+ stand out from its grid. The filmstrip rings its photos the same way, and so do Compare, Reference and Survey (where
+ the ring is the only sign of the active photo) and the People view's chosen person.
+ ### Smart albums open and count faster on large libraries
+ - A smart album that tests another smart album and also a file path or other text (for example "in Rejects, and the
+ path contains …") now checks the quick rules first and the slow ones last, so most photos are ruled out before the
+ other album is asked about them. The photos in the album and their order are the same, and the rules still show in
+ the order you wrote them. (A library whose smart albums test each other in a circle, which LightCraft doesn't let
+ you make, or test each other 32 deep, keeps testing the rules as written.) On a 312,000-photo test library, opening
+ 51 such albums in turn went from about 19 s to about 5.8 s (about 377 ms to 113 ms each; a busy machine,
+ so rough numbers).
### Sharper resampling in HDR and panorama merges
- Merged photos (HDR and panorama) are resampled with a sharper filter (Lanczos-3 instead of bilinear). Moving a