{"id":50352613,"url":"https://github.com/orisano/golzma","last_synced_at":"2026-05-29T21:30:35.596Z","repository":{"id":358209148,"uuid":"1240013063","full_name":"orisano/golzma","owner":"orisano","description":null,"archived":false,"fork":false,"pushed_at":"2026-05-16T07:57:46.000Z","size":75,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-16T09:50:44.095Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/orisano.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-15T17:17:07.000Z","updated_at":"2026-05-16T07:57:50.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/orisano/golzma","commit_stats":null,"previous_names":["orisano/golzma"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/orisano/golzma","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orisano%2Fgolzma","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orisano%2Fgolzma/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orisano%2Fgolzma/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orisano%2Fgolzma/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/orisano","download_url":"https://codeload.github.com/orisano/golzma/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/orisano%2Fgolzma/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33672124,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-29T02:00:06.066Z","response_time":107,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":"2026-05-29T21:30:34.856Z","updated_at":"2026-05-29T21:30:35.590Z","avatar_url":"https://github.com/orisano.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# golzma\n\nPure Go LZMA/LZMA2 decoder with assembly acceleration on ARM64 and AMD64.\n\n## Install\n\n```\ngo get github.com/orisano/golzma\n```\n\n## Usage\n\n### LZMA (.lzma)\n\n```go\nimport \"github.com/orisano/golzma\"\n\nr, err := golzma.NewReader(compressedReader)\n// read decompressed data from r\n```\n\n### LZMA2\n\n```go\nr := golzma.NewLZMA2Reader(compressedReader, dictProp)\n// read decompressed data from r\n```\n\n## Benchmark\n\nThe `bench/` directory contains benchmarks comparing the Go decoder against the 7z C implementation.\n\n### Go-only benchmarks\n\nRequires the `lzma` command for generating test data.\n\n```\ngo test -bench=. ./bench/\n```\n\n### C implementation benchmarks\n\nRequires the LZMA SDK C source in `./tmp/lzma/` (from the [LZMA SDK](https://7-zip.org/sdk.html)).\n\n```\ngo test -tags clzma -bench=. ./bench/\n```\n\n### C implementation with assembly benchmarks\n\nAdditionally requires building the platform-specific assembly library into `/tmp/libLzmaDecOpt.a`.\n\nFor ARM64, build from `tmp/lzma/Asm/arm64/LzmaDecOpt.S`. For AMD64, use [asmc](https://github.com/nidud/asmc) to assemble `tmp/lzma/Asm/x86/LzmaDecOpt.asm`:\n\n```\nasmc64 -c -elf64 -DABI_LINUX -Fo/tmp/LzmaDecOpt.o tmp/lzma/Asm/x86/LzmaDecOpt.asm\nar rcs /tmp/libLzmaDecOpt.a /tmp/LzmaDecOpt.o\ngo test -tags clzma -bench=. ./bench/\n```\n\n## Acknowledgements\n\nThe assembly generators (`goasm_arm64.py`, `goasm_amd64.py`) are inspired by [s_xbyak](https://github.com/herumi/s_xbyak) by @herumi.\n\nThe LZMA decode loop is ported from [LZMA SDK](https://7-zip.org/sdk.html) by Igor Pavlov (public domain).\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forisano%2Fgolzma","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Forisano%2Fgolzma","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Forisano%2Fgolzma/lists"}