{"id":15518303,"url":"https://github.com/c9s/jchash","last_synced_at":"2026-02-26T01:14:49.791Z","repository":{"id":66245296,"uuid":"78928761","full_name":"c9s/jchash","owner":"c9s","description":"Jump Consistent Hashing Algorithm implemented in PHP 7 Extension","archived":false,"fork":false,"pushed_at":"2019-07-27T02:42:17.000Z","size":8,"stargazers_count":16,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-10-16T02:25:43.854Z","etag":null,"topics":["algorithm","consistent-hash-algorithm","php","php7"],"latest_commit_sha":null,"homepage":null,"language":"C","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/c9s.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}},"created_at":"2017-01-14T08:30:38.000Z","updated_at":"2024-07-10T07:34:46.000Z","dependencies_parsed_at":null,"dependency_job_id":"fdb772dd-3392-4106-936c-19b21fc52556","html_url":"https://github.com/c9s/jchash","commit_stats":{"total_commits":9,"total_committers":2,"mean_commits":4.5,"dds":"0.11111111111111116","last_synced_commit":"8ed50cc8c211effe1c214eae1e3240622e0f11b0"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/c9s/jchash","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c9s%2Fjchash","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c9s%2Fjchash/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c9s%2Fjchash/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c9s%2Fjchash/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/c9s","download_url":"https://codeload.github.com/c9s/jchash/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/c9s%2Fjchash/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29847202,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-25T22:37:40.667Z","status":"ssl_error","status_checked_at":"2026-02-25T22:37:25.960Z","response_time":61,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["algorithm","consistent-hash-algorithm","php","php7"],"created_at":"2024-10-02T10:16:06.339Z","updated_at":"2026-02-26T01:14:49.757Z","avatar_url":"https://github.com/c9s.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"## JCH - Jump Consistent Hash Extension for PHP7\n\nA Fast, Minimal Memory, Consistent Hash Algorithm.\n\n\u003e We present jump consistent hash, a fast, minimal memory, consistent hash\n\u003e algorithm that can be expressed in about 5 lines of code. In comparison to\n\u003e the algorithm of Karger et al., jump consistent hash requires no storage, is\n\u003e faster, and does a better job of evenly dividing the key space among the\n\u003e buckets and of evenly dividing the workload when the number of buckets\n\u003e changes. Its main limitation is that the buckets must be numbered\n\u003e sequentially, which makes it more suitable for data storage applications than\n\u003e for distributed web caching.\n\nPaper: \u003chttps://arxiv.org/abs/1406.2294\u003e\n\n### Usage\n\n```php\n$b = jchash(\"11.22.33.44\", 500000);\n$b = jchash(4005823, 500000);\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fc9s%2Fjchash","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fc9s%2Fjchash","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fc9s%2Fjchash/lists"}