{"id":15349956,"url":"https://github.com/thomasmueller/lz4_simple","last_synced_at":"2025-04-04T05:25:33.911Z","repository":{"id":205324061,"uuid":"713960861","full_name":"thomasmueller/lz4_simple","owner":"thomasmueller","description":"LZ4 implementation","archived":false,"fork":false,"pushed_at":"2023-12-14T20:45:09.000Z","size":38,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-09T16:43:54.378Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thomasmueller.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-11-03T15:52:09.000Z","updated_at":"2023-11-03T16:12:12.000Z","dependencies_parsed_at":"2024-10-29T20:44:41.948Z","dependency_job_id":null,"html_url":"https://github.com/thomasmueller/lz4_simple","commit_stats":{"total_commits":19,"total_committers":2,"mean_commits":9.5,"dds":"0.052631578947368474","last_synced_commit":"ccbfa9c7385c0e6bd23b20942956f3a2644f7fcf"},"previous_names":["thomasmueller/lz4_simple"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomasmueller%2Flz4_simple","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomasmueller%2Flz4_simple/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomasmueller%2Flz4_simple/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thomasmueller%2Flz4_simple/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thomasmueller","download_url":"https://codeload.github.com/thomasmueller/lz4_simple/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247125868,"owners_count":20887794,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-01T11:56:33.475Z","updated_at":"2025-04-04T05:25:33.895Z","avatar_url":"https://github.com/thomasmueller.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Simple LZ4\n\nA very simple LZ4 implementation.\n\n## Usage\n\n    lz4_simple -1 \u003cinput\u003e \u003coutput\u003e   Compress the input file into the output file (faster)\n    lz4_simple -9 \u003cinput\u003e \u003coutput\u003e   Compress the input file into the output file (smaller)\n    lz4_simple -d \u003cinput\u003e \u003coutput\u003e   Decompress the input file into the output file\n    lz4_simple -h \u003cinput\u003e            Calculate the XXHash32 checksum\n\n## Features\n\n* Compress a file.\n* Decompress a compressed file (only default settings are supported).\n* Calculate the XXHash32 checksum of a file.\n* Written in Rust.\n* Simple and short implementation.\n* 100% safe code.\n\n## Performance\n\nThe following numbers are including disk I/O:\n\n* ~0.6 GB/s compression, which is a bit slower than the \"lz4\" command line tool.\n* ~1 GB/s decompression, which is similar to the \"lz4\" command line tool.\n* ~3 GB/s checksum, which is around half as fast as the \"crc32\" command line tool.\n\n## Code Coverage\n\nInstall:\n\n    cargo install rustfilt\n    rustup component add llvm-tools-preview\n    find ~/.rustup -name llvm-profdata\n    open ~/.zprofile\n\nCleanup:\n\n    rm *.prof*\n\nCoverage of one run:\n\n    RUSTFLAGS=\"-C instrument-coverage\" cargo build\n    ./target/debug/lz4_simple -h test.txt\n    llvm-profdata merge -sparse default_*.profraw -o prof.profdata\n    llvm-cov show -Xdemangler=rustfilt ./target/debug/lz4_simple \\\n        -instr-profile=prof.profdata \\\n        -show-line-counts-or-regions \\\n        -show-instantiations \\\n        -name-regex=\".*\"\n\nCoverage of tests:\n\n    cargo clean\n    RUSTFLAGS=\"-C instrument-coverage\" cargo test\n    llvm-profdata merge -sparse default_*.profraw -o prof.profdata\n    FILE=`find ./target/debug/deps -type f ! -name \"*.*\"`\n    llvm-cov show -Xdemangler=rustfilt ${FILE} \\\n        -instr-profile=prof.profdata \\\n        -show-line-counts-or-regions \\\n        -show-instantiations \\\n        -name-regex=\".*\"\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthomasmueller%2Flz4_simple","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthomasmueller%2Flz4_simple","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthomasmueller%2Flz4_simple/lists"}