Git Product home page Git Product logo

Comments (5)

creationix avatar creationix commented on August 20, 2024

Personally I just use the lib folder in a git submodule and depend on my build tools to extract the files I actually need. Thanks for an awesome library that's so easy to consume.

My submodules for 3rd party code: https://github.com/creationix/tedit-app/tree/master/lib
My build rule that pulls in the lib folder: https://github.com/creationix/tedit-app/blob/master/chrome-app/src/pako.rule

from pako.

puzrin avatar puzrin commented on August 20, 2024

Yes, lib is specially designed to be requireable by separate files. I meaned another case - if someone need "pure raw deflate only", it's possible to additionally reduce size by cutting gzip support, strings conversion, deflate header wrapper, and some other deflate methods.

But, honestly, i think that's not significant in real life, and doesn't worth of spending time :)

from pako.

creationix avatar creationix commented on August 20, 2024

Considering this is already orders of magnitude smaller than the emscripten version of zlib, I'm happy with the size.

If you structured the code right, a really smart compressor could see which methods I use in the library and trim unused/dead code. I don't use string conversion or gzip support. I just need deflate/inflate as used in git.

But I agree that since size isn't an issue for me with pako, I don't worry about it.

I'm interested to hear what others think.

from pako.

puzrin avatar puzrin commented on August 20, 2024
  • Stuk/jszip#102 (comment) JSZip devs agreed, that size difference is not so big to care about.
  • browserify with 'zlib' support adds much more overhead with buffers/streams and other shims, so pako size cut is not significant there.

AFAIK, that's the most big projects, that requires pako.

from pako.

puzrin avatar puzrin commented on August 20, 2024

closed - timed out / not really needed

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.