Repository navigation
Desktop: faster startup and a sidebar that reuses its rows (#475) - #485
Merged
Merged
Conversation
canvas.Image keeps one decoded SVG per (resource, colour) instead of colourising and parsing the XML at every Refresh; the sidebar keeps its project and chat rows between renderings and refreshes only those that changed; the ⋯ inset is a constant instead of a row built per row. BenchmarkPerfRenderChats: 19.5 ms, 5.1 MB, 73.9k allocs -> 2.5 ms, 1.05 MB, 18.1k allocs on the same machine. Assisted-by: Claude Opus 5.5 low
The XDG portal answers at launch with the variant already in use, and Fyne then re-themed every window (~180 ms on the UI thread, llvmpipe). The variant is applied only when it changes, and a variant-only change no longer re-themes the windows: 1loop sets a new theme when its own follows the system. Assisted-by: Claude Opus 5.5 low
…475) The ring (512 px, decoded, inked, resampled) is drawn once per ink and size, off the UI thread, and shared by the marks. The phone remote, the linked servers, the update check and the other windows of the last run start 100 ms after the window shows, behind the first frame. Assisted-by: Claude Opus 5.5 low
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Part of #475. Stacked on
perf/audit(#477, unmerged): retarget todevonce it is merged.What changed
canvas.Imagekeeps one decoded SVG per (resource, colour) instead of re-parsing the XML at every Refresh (third_party/fyne/canvas/image_svgcache.go).restoreWindowsstart after the first frame.third_party/fyne/app,internal/app,internal/driver/glfw— outside the package's file list, kept minimal.Measurements
VM 111, llvmpipe (virtio, no GL; the audit's numbers were on virgl), 200-chat state,
scripts/perf/run.sh startup, 4 warm runs each, ms since package init:BenchmarkPerfRenderChats(headless, local): 19.5 ms, 5.1 MB, 73.9k allocs → 2.5 ms, 1.05 MB, 18.1k allocs.Against the targets
window.Show(GLFW/compositor) and ~120 ms in the tray's D-Bus registration, both before the first frameui.buildempty ≤ 40 msLeft for a follow-up: lazily built settings/panels, state save off the UI thread, sidebar scroll layout cost, virgl run.
Assisted-by: Claude Opus 5.5 low
🤖 Generated with Claude Code