Giter Site home page Giter Site logo

compression rate about php-xz HOT 6 OPEN

payden avatar payden commented on August 20, 2024
compression rate

from php-xz.

Comments (6)

payden avatar payden commented on August 20, 2024

It would certainly be easy enough to add a php.in I setting. Would that suffice for you? Haven't looked at this code for a bit but I'll take a look tonight.

from php-xz.

payden avatar payden commented on August 20, 2024

Damn auto complete on my phone. Php.ini setting is what that should be.

from php-xz.

KonstantinKuklin avatar KonstantinKuklin commented on August 20, 2024

I mean that sometimes I need fast compression with bad level 30-60%, but when I save file or dir to long time on server I try to use best compression level. Maybe function xzopen get one more parameter LEVEL? Is it possible?

from php-xz.

payden avatar payden commented on August 20, 2024

Yes, it wouldn't be a problem to add an optional parameter for compression level to XZ open and keep that compression level associated with the resource handle. I'll take a look and see what I can come up with. I'll comment back here when I have something for you to check out.

from php-xz.

payden avatar payden commented on August 20, 2024

I just threw this together in about 30 minutes before work. I haven't had time to test it really. Play around and see if that works for you. I'll take a closer look and make sure I didn't miss anything later.

Added optional parameter level for xzopen.

Looks like this: $fh = xzopen('test.xz', 'w', 0);

Proto: xzopen($filename, $mode, $compression_level);

compression_level must be 0-9 inclusive.

Let me know if this works.

from php-xz.

KonstantinKuklin avatar KonstantinKuklin commented on August 20, 2024

thank you for commits.
I'll try and let you know

from php-xz.

Related Issues (9)

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.