GithubHelp home page GithubHelp logo

tweedegolf / lzjd-rs Goto Github PK

View Code? Open in Web Editor NEW
17.0 5.0 3.0 58 KB

Rust implementation of the LZJD algorithm (https://github.com/EdwardRaff/jLZJD)

License: GNU General Public License v3.0

Rust 100.00%

lzjd-rs's Introduction

LZJD

Documentation

Rust implementation of Lempel-Ziv Jaccard Distance (LZJD) algorithm based on jLZJD

Main differences:

  • Rust instead of Java
  • Can use any hasher (executable uses CRC32) instead of just Murmur3
  • Does not allocate memory for every unique hash, instead keeps k=1024 smallest
  • Based on Vec instead of IntSetNoRemove, which is more like HashMap
  • Hash files are considerably smaller if small sequences have been digested
USAGE:
    lzjd [FLAGS] [OPTIONS] <INPUT>...

FLAGS:
    -c, --compare        compare SDBFs in file, or two SDBF files
    -r, --deep           generate SDBFs from directories and files
    -g, --gen-compare    compare all pairs in source data
    -h, --help           Prints help information
    -V, --version        Prints version information

OPTIONS:
    -o, --output <FILE>            send output to files
    -t, --threshold <THRESHOLD>    only show results >= threshold [default: 1]

ARGS:
    <INPUT>...    Sets the input file to use

See also:

lzjd-rs's People

Contributors

hdoordt avatar rnijveld avatar

Stargazers

Micci avatar Artavazd Balaian avatar Martijn Faassen avatar Richard Zak avatar  avatar  avatar  avatar Charlie avatar Tarek avatar  avatar Romain Leroux avatar VVK avatar Mike Tang avatar Benoît Laurent avatar  avatar  avatar Sander Maijers avatar

Watchers

Laurențiu Nicola avatar James Cloos avatar Sander Maijers avatar  avatar  avatar

Forkers

cxarli malwaredb

lzjd-rs's Issues

Is this project abandoned?

Clippy doesn't pass, most of the dependencies are outdated, and there are two-year-old PRs without attention.

Parallelism causes immediate failure

user@localhost~$ env RUST_BACKTRACE=1 target/debug/lzjd -p 2 -r -g /dev/null

thread 'thread '<unnamed><unnamed>' panicked at '' panicked at 'attempted to leave type `internal::Local` uninitialized, which is invalidattempted to leave type `internal::Local` uninitialized, which is invalid', ', /rustc/7bade6ef730cff83f3591479a98916920f66decd/library/core/src/mem/mod.rs/rustc/7bade6ef730cff83f3591479a98916920f66decd/library/core/src/mem/mod.rs::659659::99

This happens only without -p 1 (so even without specific value) and not just on /dev/null or with the debug binary.

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.