{"id":22101133,"url":"https://github.com/rmja/murmurincrementalhash","last_synced_at":"2025-08-24T17:47:57.315Z","repository":{"id":96149314,"uuid":"457765746","full_name":"rmja/MurmurIncrementalHash","owner":"rmja","description":"Fast Murmur32 and Murmur128 incremental hash","archived":false,"fork":false,"pushed_at":"2022-02-11T08:37:40.000Z","size":39,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-08T14:16:02.058Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rmja.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2022-02-10T12:12:07.000Z","updated_at":"2022-06-15T10:46:13.000Z","dependencies_parsed_at":null,"dependency_job_id":"f4152b1d-8129-46d6-884a-9eb09e491261","html_url":"https://github.com/rmja/MurmurIncrementalHash","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rmja%2FMurmurIncrementalHash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rmja%2FMurmurIncrementalHash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rmja%2FMurmurIncrementalHash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rmja%2FMurmurIncrementalHash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rmja","download_url":"https://codeload.github.com/rmja/MurmurIncrementalHash/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":237701112,"owners_count":19352879,"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-12-01T05:23:41.400Z","updated_at":"2025-02-07T18:48:16.563Z","avatar_url":"https://github.com/rmja.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# MurmurIncrementalHash\nFast, 0-allocation, Murmur32 and Murmur128 incremental hash implementation.\n\n[![PolyJson](https://img.shields.io/nuget/vpre/MurmurIncrementalHash.svg)](https://www.nuget.org/packages/MurmurIncrementalHash)\n\n# Usage\n```C#\nvar murmur = Murmur32.Create();\nmurmur.AppendData(data1);\nmurmur.AppendData(data2);\nuint hash = murmur.GetHashAndReset();\n```\n\n```C#\nvar murmur = Murmur128.Create();\nmurmur.AppendData(data1);\nmurmur.AppendData(data2);\nbyte[] hash = murmur.GetHashAndReset();\n// Span\u003cbyte\u003e hash = stackalloc byte[16];\n// murmur.GetHashAndReset(hash);\n```\n\nAn instance can be safely reused after the call to `GetHashAndReset()`.\nThe `Create()` method is fast but it allocates an internal buffer.\n\n\n# Performance\n[See the test suite here](src/MurmurIncrementalHash.Benchmarks/MurmurBenchmarks.cs). These numbers are from Ryzen 4000, 64 bit laptop.\n\n|       Method |      Mean |    Error |   StdDev | Allocated |\n|------------- |----------:|---------:|---------:|----------:|\n|     Murmur32 |  62.75 ns | 1.266 ns | 1.601 ns |         - |\n| Murmur128x64 |  56.03 ns | 0.470 ns | 0.392 ns |         - |\n| Murmur128x86 |  60.51 ns | 0.185 ns | 0.173 ns |         - |\n|          Md5 | 269.07 ns | 1.713 ns | 1.603 ns |         - |\n|         Sha1 | 271.19 ns | 1.680 ns | 1.403 ns |         - |\n|       Sha256 | 195.18 ns | 1.092 ns | 0.912 ns |         - |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frmja%2Fmurmurincrementalhash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frmja%2Fmurmurincrementalhash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frmja%2Fmurmurincrementalhash/lists"}