GithubHelp home page GithubHelp logo

b3sum-ng's Introduction

b3sum-ng

Build Status

Documentation (master)

A version of b3sum that is fast on hard drives and SSDs, for large and small files.

This implementation aims to be a similar speed as the official rust b3sum project for all workloads, but much faster on spinning hard drives. Small files are read in parallel and checksummed with one thread each, while large files are checksummed alone with multiple threads. --mmap is currently not a default option, since that option causes the Blake3 library to read in a way that is slow for large files on spinning drives. Many thanks to the BLAKE3 team for creating this hash and the blake3 library this program uses.

USAGE:

b3sum-ng [FLAGS] [OPTIONS] [paths]...

FLAGS:

-h, --help       Prints help information
    --mmap       Use mmap. This gives better performance on SSDs. It is possible that the program
                 will crash if a file is modified while being read.
-V, --version    Prints version information

OPTIONS:

-j, --job-count <job-count>    The number of concurrent reads to allow. Regardless of this value,
                               checksums of large files will still be computed one at a time
                               with multithreading. [default: 16]

ARGS:

<paths>...    Files to get the checksum of. When '-' is given, calculate the checksum of standard input.
              [default: -]

Examples

$ b3sum-ng .gitignore ./README.md
b955c237862d9e3192a835650e1a6cfb42085727e98f92f5586ec0279cd17e11  .gitignore
5032a97cf7c563415f02749243bd4289ec3560067db01c94a0782414b0a40530  ./README.md

$ tar -cf - . | b3sum-ng -
2b72789e52fc96405fe121b3904498b9f07c601d372807edcc0ae3f2e50a88c3  -

Installation

cargo install --git https://github.com/lefth/b3sum-ng

Todo

The --check command is not yet implemented.

b3sum-ng's People

Contributors

lefth avatar

Stargazers

 avatar

Watchers

James Cloos avatar  avatar

Forkers

restcure

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.