Giter Site home page Giter Site logo

CRC32 Performance about damiengkit HOT 6 CLOSED

damieng avatar damieng commented on May 25, 2024
CRC32 Performance

from damiengkit.

Comments (6)

damieng avatar damieng commented on May 25, 2024

You can't parallel process it but there are some tricks with slicing the table up if you don't mind the lookup table going from ~1KB to 8KB that Intel developed. I've put a new class up called Crc32Slice8 you could try - it should be drop-in compatible.

Let me know how you get on - I've not run extensive benchmarks on it yet.

from damiengkit.

jayakrishnabh avatar jayakrishnabh commented on May 25, 2024

Hi Thanks for the Crc32Slice8.
For the same 55KB buffer size, performance improved by 0.3 ms per message processing.

from damiengkit.

damieng avatar damieng commented on May 25, 2024

A 16 slice version is possible but if the performance increase in your environment is as bad as that it probably isn't worth the effort.

from damiengkit.

jayakrishnabh avatar jayakrishnabh commented on May 25, 2024

Hi Damien, It would be great to have 16 slice version if it improves the performance further better.
Please share the 16 slice version. Will try this so that our performance increases further.

from damiengkit.

damieng avatar damieng commented on May 25, 2024

Crc32Slice16 is now checked in.

from damiengkit.

damieng avatar damieng commented on May 25, 2024

I don't have any other ideas for improved performance so I'm going to close this down now.

from damiengkit.

Related Issues (14)

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.