Comments (5)
Currently, we read the compressed file chunk by chunk, until we manage to uncompress it with bzip2. Maybe the size of a chunk could be optimized (currently 128KB)
After uncompressing it, we only keep a part of the result, corresponding to the article we're looking for.
I think the algorithm in the Qt application is more clever : they uncompress the file as as stream, and stop when they have read the entire article.
But I don't think the current bzip2 implementation can support that kind of streaming
from kiwix-js.
There seems to be another implementation worth trying : https://github.com/cscott/compressjs. It claims to be optimized and to provide decompression as a stream
from kiwix-js.
Maybe https://github.com/cscott/seek-bzip is even more suitable, as the API lets you specify the length of the output you want to have.
from kiwix-js.
I close this issue as "wontfix" : the Evopedia archive format is now deprecated
from kiwix-js.
FWIW, I wrote seek-bzip and compressjs for https://github.com/cscott/nell-wikipedia, so it's not surprising they seemed suited for your uses. ;)
from kiwix-js.
Related Issues (20)
- Consider more reliable and stable detection methods for distinguishing zimit classic and zimit2 HOT 5
- Update actions/checkout@v3 to actions/checkout@v4 in GitHub runners
- Add an automated Selenium UI test for a small Zimit2 archive
- Fix URL handling for zimit2 ZIMs in jQuery mode
- When reading Zimit archives, images are inverted by dark theme HOT 3
- Add Table of Contents dropup like in Kiwix PWA HOT 5
- Remove unnecessary space below search bar when screen is narrow HOT 7
- Update info about file and directory picking to include File System Access persistent permissions
- Re-open previous archive if app has permission via persistent permissions, like with Firefox OS
- Use of FSA API and webkitdirectory stores unnecessary keys in localStorage and webkitdirectory fails to clear when new directory is loaded HOT 1
- When using persistent FSA permissions, go straight to article view without showing Config first HOT 1
- Work around the workaround: deal with querystrings in zimit2 ZIMs where the URL separators have been encoded HOT 1
- Possibly work around need to add final slash to root URLs when checking a link clicked by user
- Test if JQuery can be fully removed by upgrading Bootstrap HOT 5
- Consider adding support for calling a local (or remote) LLM API to manipulate article contents HOT 4
- Update the firefox extension add-ons link in the README file HOT 1
- Support Xapian title index (via libzim) - aka "suggestions"
- Add ZIM info to the security dialogue box when opening a ZIM for the first time HOT 6
- Create new function in uiUtil.js to navigate to the opened ZIM in order to reduce redundancy HOT 5
- Support Safari extensions (for macOS)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from kiwix-js.