Giter Club home page Giter Club logo

Comments (5)

mossroy avatar mossroy commented on July 17, 2024

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.

mossroy avatar mossroy commented on July 17, 2024

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.

mossroy avatar mossroy commented on July 17, 2024

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.

mossroy avatar mossroy commented on July 17, 2024

I close this issue as "wontfix" : the Evopedia archive format is now deprecated

from kiwix-js.

cscott avatar cscott commented on July 17, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.