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

replace Cache by Lru cache #2451

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

Conversation

ftoromanoff
Copy link
Contributor

@ftoromanoff ftoromanoff commented Oct 24, 2024

replace our own itowns.cache per the lru-cache package.

Currently we use 1 cache for each Layer + 1 for Style and another one for tile. Should we change that ?
I also arbitrary fixed the max size of each cache to 500. Maybe this should be discuse, depending of the type of cache ?

Other question what should I do with export const CACHE_POLICIES, I currently kept the 'Cache.js' file just for this.

@ftoromanoff ftoromanoff force-pushed the lruCache branch 3 times, most recently from 217ac00 to f5e0a65 Compare October 24, 2024 13:27
@ftoromanoff ftoromanoff reopened this Oct 24, 2024
@ftoromanoff ftoromanoff force-pushed the lruCache branch 3 times, most recently from 3611195 to 755b70e Compare October 24, 2024 15:02
@ftoromanoff ftoromanoff force-pushed the lruCache branch 2 times, most recently from 70d6cf4 to a615509 Compare October 25, 2024 13:19
@jailln
Copy link
Contributor

jailln commented Nov 15, 2024

@ftoromanoff does it solve #869 ?

@ftoromanoff ftoromanoff force-pushed the lruCache branch 7 times, most recently from 5ceb4a3 to 0abce48 Compare January 23, 2025 10:22
@ftoromanoff ftoromanoff force-pushed the lruCache branch 2 times, most recently from 119976e to 51d9192 Compare January 24, 2025 09:05
@ftoromanoff
Copy link
Contributor Author

@ftoromanoff does it solve #869 ?

I can't say. Is there a way to test it ?

@ftoromanoff ftoromanoff marked this pull request as ready for review January 24, 2025 09:45
@AnthonyGlt AnthonyGlt self-requested a review January 24, 2025 10:30
@jailln jailln requested review from AnthonyGlt and removed request for jailln and AnthonyGlt January 24, 2025 14:27
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.

2 participants