-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Port existing string-key caches to use an integer hash key #2028
Labels
performance
Improving speed and memory usage
Milestone
Comments
maxkfranz
added a commit
that referenced
this issue
Dec 8, 2017
maxkfranz
added a commit
that referenced
this issue
Dec 8, 2017
maxkfranz
added a commit
that referenced
this issue
Dec 8, 2017
maxkfranz
added a commit
that referenced
this issue
Dec 8, 2017
- Use the hash function for node path cache keys - Cache node paths per-renderer rather than per-node
maxkfranz
added a commit
that referenced
this issue
Dec 8, 2017
- Use the hash function for cache keys - Reduce the cache key value tuple (size, shape, angle, x, y) to (shape) - Store the cache per-renderer rather than per-edge
maxkfranz
added a commit
that referenced
this issue
Dec 8, 2017
maxkfranz
added a commit
that referenced
this issue
Dec 8, 2017
- Use the hash function to generate cache keys instead of using concatenated strings. - Chain the hash with the label dimensions key from the style hints. - This removes the need for the extra key.
d2fong
added a commit
that referenced
this issue
Dec 14, 2017
…roperly #2028 Max & Dylan : Debug PathwayCommons/app-ui not showing SBGN bg images (they seem shifted if you turn clipping off)
maxkfranz
added a commit
that referenced
this issue
May 4, 2018
- Add hash unit tests. - Make property groups : These are used for creating group hashes, as some properties don't visual output. - Optimisation for style hash calculations : Calculate the hashes for property groups a more cheaply by only considering non-default prop values and iterating over the overridden keys in `ele._private.style` rather than the entire group prop list. - Pie style property hints use the property group hashes. - Add `ElementTextureCacheLookup` : a lookup table for (ele, scaleLvl) tuples based on the style hashes. If N elements share the same hash, then there is only one rendering with N blits -- blits being cheap and renderings being expensive. This will help performance greatly on graphs with many nodes that are the same apart from label (once separate label textures are implemented #1270). - The `ElementTextureCacheLookup` can be re-used for implementing separate caches for edge arrows #1616 and element labels #1270. - Misc. formatting improvements to cache code and stylesheet code. Completes: - Port existing string-key caches to use an integer hash key #2028 - Use integer hash for style property hint keys #2027
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ref : Use integer hash for style property hint keys #2027
While the style property hint keys are the main usecase for the hash function, it can also benefit other existing caches.
The text was updated successfully, but these errors were encountered: