kiwix-desktop
kiwix-desktop copied to clipboard
If one ZIM file is "slow" then it slows down the whole Kiwix **massively**
I have wikipedia_en_all_maxi_2024-01.zim which is stored on a NAS, accessible via SMB protocol on a Ubuntu 22.04.
Even if I have a large bandwidth between my computer and my NAS, the latency is significant... at least significant enough to seriously slow down the reading experience on Kiwix.
But, even if this is an interesting point, this is not the topic of this issue. The topic is that, at from the time I have loaded this ZIM file in my local library, then everything start to be slow like:
- Simply filtering on the local library
- Loading an article in an other ZIM
For example, if I add a filter on my local library (with around 20 ZIM files) then it takes around 5s whereas if wikipedia_en_all_maxi_2024-01.zim is not part of the library, then it takes less than one second.
Same for loading an article which of Wiktionary (which is not stored on the NAS), it takes usually around 1s, but if I have wikipedia_en_all_maxi_2024-01.zim in the library, it takes 5s.
Considering that the two operations listed above should not require reading wikipedia_en_all_maxi_2024-01.zim, it seems to me there is a massive waste of hardware resources here.
It looks like each time the user click somewhere it implies reading wikipedia_en_all_maxi_2024-01.zim on the storage backend!?