Giter Club home page Giter Club logo

liburing_b3sum's People

Contributors

1f604 avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar

Forkers

sentido-labs

liburing_b3sum's Issues

Use cv.wait instead of atomic

Currently the consumer thread spins on an atomic (and likewise the producer thread is also effectively a busy wait).

This may be wasteful of CPU. We could perhaps reduce CPU usage by switching to cv.wait.

This may require splitting up the producer thread into 2 new threads: one that issues requests in a loop and one that checks for completions in a loop. We need to investigate whether this is okay to do (i.e. does io_uring allow it?).

If there is enough demand for this then I can implement it, but currently since nobody has complained about it I'm going to assume that it's not a problem.

Batch mode for processing multiple files

Currently, the program just hashes a single file.

However, we could make the program hash multiple files.

This could potentially bring some performance benefits since we can avoid the overhead of setting up the io_uring and the ring buffer for each file, and possibly open the next file before we have finished processing the current file, and send the request for the next file before we're done reading the current file - I'm pretty sure this will result in some amount of performance gain, but I don't know how much - need to benchmark it.

If there is enough demand for this then I will implement it. Since nobody has complained about this I'm going to assume that it's a non-issue.

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.