-
-
Notifications
You must be signed in to change notification settings - Fork 55
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
Cache strategy questions. #438
Comments
It seems to me that these questions could only be decided definitively with some metrics comparing time to first paint, binary search times (for complex searches) and time to complete load including all assets, in a large ZIM file on a lower-spec device (e.g. mobile). All I can say is that in Kiwix JS, because JS file access is relatively slow, we have found a combination of a persistent assets cache and a separate Directory Entry cache (which speeds up binary search) provides very acceptable performance even with very slow file access (e.g. over a network). |
How much work would it be to build an url - dirent cache? To me it seems we coyld close this ticket if this is implemented. |
@mgautierfr @veloman-yunkan Two years have passed. I wonder if the terms of the problems are still the same? |
From my experience with |
Not a lot have been done on this side since the last cache strategy work (not hidden improvement) We have to do some measurement before trying to improve things even if the @veloman-yunkan analyse seems good. |
I have opened a new issue #946 to narrow down a bit the scope. This issue is pretty wide about cache strategy and it is difficult (if not impossible) to really close it without proper measurement of when we spend time and so where we should add/remove/improve our cache strategy. |
Following the PR #430, here few open questions about the cache strategy in libzim :
url
->dirent
instead of the current one (index
->dirent
) as some content may be load several times (main pages, css, ...)The text was updated successfully, but these errors were encountered: