Git Product home page Git Product logo

Comments (6)

synopse avatar synopse commented on May 23, 2024

This support is experimental and not available by default.
Any input is welcome, but I don't have time for this now.

from mormot.

synopse avatar synopse commented on May 23, 2024

If you look into the feedback and later benchmarks in the pull request on CF it is not sure that it is actually faster...

from mormot.

neurolabusc avatar neurolabusc commented on May 23, 2024

I have recompiled the CloudFlare zlib libraries and placed them here. Feel free to update the static files included with your repository.

You can test the performance benefit yourself with my benchmark. The feedback and benchmarks you are referring to were from me. However, the conclusion is that this patch does not improve gz compression, though it aids .z compression and both .gz and .z decompression. It accelerates .gz decompression by about ~16% (improving decompression but not CRC32 redundancy check), and it accelerates .z compression ~25% (since both the Adler32 redundancy check and decompression is improved).

from mormot.

neurolabusc avatar neurolabusc commented on May 23, 2024

I have updated .o files for Linux, MacOS and Windows. I used 3 different computers to compare performance, so one can not compare between operating systems.
On Linux, FPC TGZFileStream required 1770ms, SynZip required 1120ms, SynZip+CloudFlare2020 required 830ms
On MacOS, TGZFileStream required 1244ms, SynZip required 610ms, SynZip+CloudFlare2020 required 500ms
On Windows, TGZFileStream required 2724ms, SynZip+CloudFlare2018 required 1310ms, SynZip+CloudFlare2020 required 1200ms. So the new code is about 10% faster for decompression. It is a small but reliable impact.

from mormot.

synopse avatar synopse commented on May 23, 2024

I am currently integrating libdeflate to mORMot 2.
This is much faster than the CloudFlare zlib library.

from mormot.

neurolabusc avatar neurolabusc commented on May 23, 2024

@synopse nice work! I agree that libdeflate is a much faster algorithm (albeit it may have higher memory demands). I show the relative performance here. I have tried your code from mORMot 2, and it is does provide easy access to this blazing fast library. Thanks for implementing this.

from mormot.

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.