Skip to content
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

Reduce maintenance overhead of the path cache. #1064

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

autopulated
Copy link

Instead of setting a timeout each time the cache is accessed, set only one
timeout at a time, and keep a record of which items it should be updating.

This seems to significantly improve performance in our use-case (note that the overhead of the old version is in the many many timeout functions, so you wouldn't notice it when drawing a single scene – but it adds up if you're progressively drawing a scene over time.)

Instead of setting a timeout each time the cache is accessed, set only one
timeout at a time, and keep a record of which items it should be updating.
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.

1 participant