#distance #edit-distance #edit #input-file #lzjd #lempel #ziv

bin+lib malwaredb-lzjd

Rust implementation of the LZJD algorithm by Edward Raff -- https://github.com/EdwardRaff/jLZJD

3 releases

0.1.3 May 6, 2024
0.1.2 Sep 17, 2023
0.1.1 Sep 17, 2023
0.1.0 Aug 22, 2023

#140 in Compression

Download history 217/week @ 2024-03-13 267/week @ 2024-03-20 175/week @ 2024-03-27 221/week @ 2024-04-03 156/week @ 2024-04-10 327/week @ 2024-04-17 386/week @ 2024-04-24 421/week @ 2024-05-01 354/week @ 2024-05-08 261/week @ 2024-05-15 130/week @ 2024-05-22 294/week @ 2024-05-29 328/week @ 2024-06-05 179/week @ 2024-06-12 102/week @ 2024-06-19 124/week @ 2024-06-26

759 downloads per month
Used in 3 crates (2 directly)

GPL-3.0 license

28KB
567 lines

TestLintCrates.io Version

LZJD

Documentation

Rust implementation of Lempel-Ziv Jaccard Distance (LZJD) algorithm based on jLZJD by Edward Raff.

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<u64> instead of IntSetNoRemove, which is more like HashMap
  • Hash files are considerably smaller if small sequences have been digested

This fork has minor changes:

  • Update to Rust edition 2021.
  • Remove dependencies preventing it from working on non-x86 hardware.
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:

Dependencies

~3–12MB
~122K SLoC