Skip to content

Fix #36: large preset collections — preset pickers build only the rows in view - #54

Merged
emmertex merged 4 commits into
mainfrom
fix/presets-perf
Oct 14, 2026
Merged

emmertex merged 4 commits into
mainfrom
fix/presets-perf

Conversation

@emmertex

Copy link
Copy Markdown
Owner

Fixes #36

Measured on main (headless release harness, library on disk, 2 000 / 10 000 user presets):

  • Engine side is already fixed by the 0.8.0 upstream merge (PERF-PRESETS / #983: Refine Photos… and Find Previous Process Photos #1056): develop.set 0.01–0.03 ms bare, presets.json not rewritten per command, library open 5 ms / 17 ms, Develop frames with Presets panel open/closed < 2 ms at 10k (the Classic left column draws upstream's virtualised panel).
  • Remaining fork hotspot: Library Quick Develop's Saved Preset menu cloned every preset's id+name each frame and built one button per preset while open: 3.8 ms (2k) / 16.3 ms (10k) per frame → 0.8 ms / 0.8 ms.

Changes: Quick Develop, the tether bar's Develop-preset combo and the painter's Settings combo use the virtualised presets::picker_rows; the preset Amount slider's per-frame check no longer formats a string per preset.
Test: quick_develop_preset_menu_builds_only_visible_rows (5049 widgets before, fails; passes after). Checks: targeted test, cargo xtask ci --fast green. Upstream #1133's remaining item (journal fsync) is a maintainer decision, not touched; no upstream PR.

🤖 Generated with Claude Code

emmertex and others added 4 commits October 14, 2026 13:59
…ter build only the rows in view

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
@emmertex
emmertex merged commit ded8dc6 into main Oct 14, 2026
6 checks passed
@emmertex
emmertex deleted the fix/presets-perf branch October 14, 2026 03:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Large preset collection slowdown

1 participant