Git Product home page Git Product logo

Comments (10)

zefanja avatar zefanja commented on August 20, 2024

Does this mean, Inflate is not implemented yet? I've tried to use it, but always get an empty error message (Firefox v27).

from pako.

puzrin avatar puzrin commented on August 20, 2024

Yes, it's in separate branch, not compleete yet.

from pako.

zefanja avatar zefanja commented on August 20, 2024

Ok, thank you. I want to use in one of my projects. I'm using Zlib.js currently, but want to see if pako is faster (especially on mobile devices) ;)

from pako.

puzrin avatar puzrin commented on August 20, 2024

Situation with imaya's inflate is better, than with it's deflate.

Come back in 1-2 weeks. I hope, pako will be released, with working inflate and updated benchmarks.

from pako.

creationix avatar creationix commented on August 20, 2024

Will pako's inflate be usable for parsing deflate streams within larger streams. In particular, I'm writing a git packfile parser. In that format, object bodies are deflate streams, but there is no length header to tell the parser how many bytes to feed to inflate. I need an interface that notifies me when I've fed it enough data and gives back the extra bytes that weren't part of the deflate stream.

from pako.

puzrin avatar puzrin commented on August 20, 2024

@creationix , pako has 2 levels:

  • low, with "native" zlib ported functions
  • high, with JS interface

High level is just a simple wrapper for convenience, with ability to process data by chunks, ~ the same for inflate and deflate. It's very simple https://github.com/nodeca/pako/blob/master/lib/deflate.js . You can customize default handlers or write your own wrapper for low-level "native" functions.

If you think, that existing wrapper it's not enougth good/flexible - create a ticket, i'm open to suggections.

from pako.

puzrin avatar puzrin commented on August 20, 2024

@creationix i can't demonstrate inflate right now, but you can see, that low level deflate has exactly the same interface & structure, as original zlib https://github.com/nodeca/pako/blob/master/lib/zlib/deflate.js#L1583-L1596 . So, if can do something with zlib, you will be able to do the same with pako.

from pako.

creationix avatar creationix commented on August 20, 2024

Cool, I'll check it out after the inflate branch is done. I'm using @chrisdickinson's code for now (since he wrote it specifically for my use case)

from pako.

puzrin avatar puzrin commented on August 20, 2024

Good news is that we are still alive :) . Inflate branch is passing almost all tests. See updated plan.

Speed is "ok" (better that competitors in any node version), and i hope it will become "outstanding" when we apply postponed optimizations.

from pako.

puzrin avatar puzrin commented on August 20, 2024

Master is ready for release, docs updated too. If nobody has comments/questions, the first official release will happen soon.

from pako.

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.