{"id":13648732,"url":"https://github.com/tikv/crc64fast","last_synced_at":"2025-04-22T11:33:06.895Z","repository":{"id":53933746,"uuid":"222636658","full_name":"tikv/crc64fast","owner":"tikv","description":"SIMD accelerated CRC-64-ECMA computation","archived":false,"fork":false,"pushed_at":"2024-01-18T14:57:12.000Z","size":78,"stargazers_count":45,"open_issues_count":3,"forks_count":8,"subscribers_count":21,"default_branch":"master","last_synced_at":"2024-10-31T12:13:16.544Z","etag":null,"topics":["crc64","crc64-ecma182","simd"],"latest_commit_sha":null,"homepage":"","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/tikv.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-Apache","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2019-11-19T07:38:13.000Z","updated_at":"2024-10-12T11:56:14.000Z","dependencies_parsed_at":"2024-01-14T10:59:34.442Z","dependency_job_id":"bb3df54c-6cc7-4e24-8f4c-984a741272ed","html_url":"https://github.com/tikv/crc64fast","commit_stats":{"total_commits":10,"total_committers":2,"mean_commits":5.0,"dds":0.09999999999999998,"last_synced_commit":"baedd67eedec13ae10d523232c5a3c58ede48e16"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tikv%2Fcrc64fast","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tikv%2Fcrc64fast/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tikv%2Fcrc64fast/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tikv%2Fcrc64fast/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tikv","download_url":"https://codeload.github.com/tikv/crc64fast/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":223896472,"owners_count":17221441,"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":["crc64","crc64-ecma182","simd"],"created_at":"2024-08-02T01:04:29.483Z","updated_at":"2024-11-09T23:30:30.229Z","avatar_url":"https://github.com/tikv.png","language":"Rust","funding_links":[],"categories":["Rust"],"sub_categories":[],"readme":"crc64fast\n=========\n\n[![Build status](https://github.com/tikv/crc64fast/workflows/Rust/badge.svg)](https://github.com/tikv/crc64fast/actions?query=workflow%3ARust)\n[![Latest Version](https://img.shields.io/crates/v/crc64fast.svg)](https://crates.io/crates/crc64fast)\n[![Documentation](https://img.shields.io/badge/api-rustdoc-blue.svg)](https://docs.rs/crc64fast)\n\nSIMD-accelerated CRC-64/XZ (a.k.a. CRC-64/GO-ECMA) computation\n(similar to [`crc32fast`](https://crates.io/crates/crc32fast)).\n\n## Usage\n\n```rust\nuse crc64fast::Digest;\n\nlet mut c = Digest::new();\nc.write(b\"hello \");\nc.write(b\"world!\");\nlet checksum = c.sum64();\nassert_eq!(checksum, 0x8483_c0fa_3260_7d61);\n```\n\n## Performance\n\n`crc64fast` provides two fast implementations, and the most performance one will\nbe chosen based on CPU feature at runtime.\n\n* a fast, platform-agnostic table-based implementation, processing 16 bytes at a time.\n* a SIMD-carryless-multiplication based implementation on modern processors:\n    * using PCLMULQDQ + SSE 4.1 on x86/x86_64\n    * using PMULL + NEON on AArch64 (64-bit ARM)\n\n| Algorithm         | Throughput (x86_64) | Throughput (aarch64) |\n|:------------------|--------------------:|---------------------:|\n| [crc 3.0.1]       |  0.5 GiB/s          |  0.3 GiB/s           |\n| crc64fast (table) |  2.3 GiB/s          |  1.8 GiB/s           |\n| crc64fast (simd)  | 28.2 GiB/s          | 20.0 GiB/s           |\n\n[crc 3.0.1]: https://docs.rs/crc/3.0.1/crc/index.html\n\n## TODO\n\nThis crate is mainly intended for use in TiKV only.\nFeatures beyond AArch64 are unlikely to be implemented.\n\n* [x] AArch64 support based on PMULL\n* [ ] `no_std` support\n* [x] Fuzz test\n* [ ] Custom polynomial\n\n## License\n\ncrc64fast is dual-licensed under\n\n* Apache 2.0 license ([LICENSE-Apache](./LICENSE-Apache) or \u003chttp://www.apache.org/licenses/LICENSE-2.0\u003e)\n* MIT license ([LICENSE-MIT](./LICENSE-MIT) or \u003chttps://opensource.org/licenses/MIT\u003e)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftikv%2Fcrc64fast","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftikv%2Fcrc64fast","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftikv%2Fcrc64fast/lists"}