Skip to content

Reduce maintenance overhead of the path cache. - #1064

Open
autopulated wants to merge 2 commits into
DmitryBaranovskiy:masterfrom
Coggle:master
Open

Reduce maintenance overhead of the path cache.#1064
autopulated wants to merge 2 commits into
DmitryBaranovskiy:masterfrom
Coggle:master

Conversation

@autopulated

Copy link
Copy Markdown

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