Repository navigation
Avoid extra cached_band_inks call on warm hit in QtNameWaveDelegate.text_inks - #2324
Merged
Merged
Conversation
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.
Why
shipped_run.py'sframe_workgate caughtlist_item_delegate.MultilinePreviewItemDelegate.paintticking from68.5to74.6Python calls/frame (69.3allowed) after#2322, becauseQtNameWaveDelegate.text_inks()delegated every warm cache hit throughself.cached_band_inks(...)(+1 Python call per painted waving row).What changed
src/toad/qt/name_wave.py:131-143: check the inheritedself.inks.get(...)directly on warm cache hits inQtNameWaveDelegate.text_inks, falling through toQtWaveBandCache.cached_band_inkson cache misses. Zero duplicated cache-build/eviction logic; zero extra Python calls on the hot paint path.Verification
tests/textual/test_name_wave_repaint.py,tests/model/test_android_perf_ux_arrivals.py) green,shadow_check.py0,guarded_imports.py0,REL_IMPORTS=0.