-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Removed unused setSVG and hash functionality from pixmapsource #13423
Conversation
Instead use the getPath explicit as in key. Improved cache key string concatenation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the (likely) improvement.
I haven't read the imagestore code too closely. Does it cache the data persistently across mixxx restarts? If thats the case, it would likely annoy people during development when they adjust and image but its not updated because the old data still lingers in the cache. |
This behavior is not changed. And this is one of the reasons why I clean up this code step by step. Sometimes Mixxx starts to load SVG again and the UI stucks, see #12904 |
Changing the cachekey from being based on the SVG content to being based on the file path does change when the cache is invalidated. Are you sure that the behavior is unchanged? |
There were 2 ways to generate the key:
The code path that hashed the SVG content was not used (only setSVG could write m_svgSourceData and I there was no caller for this function). therefore I deleted the getKey function in this PR: mixxx/src/skin/legacy/pixmapsource.cpp Lines 45 to 51 in 6d23434
Instead of getKey I use the getPath function, which is the same as the used code path of getKey: mixxx/src/skin/legacy/pixmapsource.cpp Lines 24 to 26 in 6d23434
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see. Thank you. LGTM
Instead use the getPath explicit as in key
Improved cache key string concatenation