-
Notifications
You must be signed in to change notification settings - Fork 303
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
Conversation
217ac00
to
f5e0a65
Compare
3611195
to
755b70e
Compare
70d6cf4
to
a615509
Compare
@ftoromanoff does it solve #869 ? |
119976e
to
51d9192
Compare
I can't say. Is there a way to test it ? |
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.
Thank you for this integration, it looks nice 👍
The refactoring looks good to me, well done
Is there some improvements from these changes ? Some data that could explain this choice ? |
|
049c40e
to
16ecb3d
Compare
BREAKING CHANGE: - remove Source#onParsedFile callback
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.