{"id":20987234,"url":"https://github.com/haxpor/hashmap_c","last_synced_at":"2025-06-16T03:32:58.770Z","repository":{"id":149552961,"uuid":"169403525","full_name":"haxpor/hashmap_c","owner":"haxpor","description":"Generic hashmap implementation in C. Uses murmurhash as hash function.","archived":false,"fork":false,"pushed_at":"2021-11-08T05:10:16.000Z","size":64,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-16T03:32:42.223Z","etag":null,"topics":["c","data-structure","generic","hashmap"],"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/haxpor.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":"2019-02-06T12:36:16.000Z","updated_at":"2024-05-05T16:07:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"feb588f9-ce97-4afc-9abc-a48425bd7d7a","html_url":"https://github.com/haxpor/hashmap_c","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/haxpor/hashmap_c","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haxpor%2Fhashmap_c","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haxpor%2Fhashmap_c/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haxpor%2Fhashmap_c/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haxpor%2Fhashmap_c/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/haxpor","download_url":"https://codeload.github.com/haxpor/hashmap_c/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/haxpor%2Fhashmap_c/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":260090543,"owners_count":22957243,"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":["c","data-structure","generic","hashmap"],"created_at":"2024-11-19T06:16:22.174Z","updated_at":"2025-06-16T03:32:58.732Z","avatar_url":"https://github.com/haxpor.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hashmap_c\n\nHashmap with [MurmurHash3](https://github.com/aappleby/smhasher) (specifically `MurmurHash3_x32_32` variant) as hashing function in C implementation which is suitable for low latency hash table lookup.\n\n# Build\n\nBased on autotools.\n\n* `./autogen.sh`\n* `./configure`\n* `make`\n* (optional) `make check`\n* `make install`\n\n## ndk-build suport for Android\n\nThis project has support for building library for Android.\n\nIt has `Android.mk` file at the root directory of this project. You can use the following command for example\n\n```\nndk-build NDK_PROJECT_PATH=null NDK_OUT=build/objs NDK_LIBS_OUT=build/libs APP_BUILD_SCRIPT=Android.mk APP_PLATFORM=android-18 APP_MODULES=\"hashmap_c hashmap_c_static\" NDK_DEBUG=1\n```\n\nThat will generate obj and library (shared and static one) files at build/objs and build/libs (static library is at build/objs/local for minimum sdk support of api level 18 with debugging symbols also generated. `APP_MODULES` tells to build for both shared and static library.\n\n# Compile Flags\n\nIf you want to see more debugging log as spit out from hashmap itself, use `make CFLAGS=-DHASHMAPC_DEBUG`. This will make it prints out debugging log whenever we call its function.\n\n# Technical Note\n\nIt will expand by doubling memory space preparing for future addition of key-value item when the current number of key-value items reaches 75% of its capacity which is initially set to be 16.\n\nThere's no mechanism to shrink down memory usage, so capacity will be doubled each time according to description above.\n\n# License\nMIT, Wasin Thonkaew\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaxpor%2Fhashmap_c","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhaxpor%2Fhashmap_c","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhaxpor%2Fhashmap_c/lists"}