{"id":16906609,"url":"https://github.com/rsms/ckit-jemalloc","last_synced_at":"2025-10-07T23:13:37.427Z","repository":{"id":66105765,"uuid":"368355348","full_name":"rsms/ckit-jemalloc","owner":"rsms","description":"jemalloc-based memory allocator for ckit/rbase","archived":false,"fork":false,"pushed_at":"2021-05-20T00:12:43.000Z","size":698,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-09-15T21:39:21.198Z","etag":null,"topics":["arena-allocator","ckit"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rsms.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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":"2021-05-18T00:22:52.000Z","updated_at":"2022-04-17T19:51:40.000Z","dependencies_parsed_at":null,"dependency_job_id":"70f986db-3201-4835-ba09-04ce65451c61","html_url":"https://github.com/rsms/ckit-jemalloc","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/rsms/ckit-jemalloc","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsms%2Fckit-jemalloc","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsms%2Fckit-jemalloc/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsms%2Fckit-jemalloc/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsms%2Fckit-jemalloc/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rsms","download_url":"https://codeload.github.com/rsms/ckit-jemalloc/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rsms%2Fckit-jemalloc/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":278861038,"owners_count":26058633,"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","status":"online","status_checked_at":"2025-10-07T02:00:06.786Z","response_time":59,"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":["arena-allocator","ckit"],"created_at":"2024-10-13T18:43:33.647Z","updated_at":"2025-10-07T23:13:37.381Z","avatar_url":"https://github.com/rsms.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"jemalloc-based memory allocator for [ckit/rbase](https://github.com/rsms/ckit/blob/main/pkg/rbase/mem.h)\n\n- `Mem MemJEMalloc()` provides a shared generic, thread-safe allocator.\n- `Mem MemJEMallocArenaAlloc()` provides arena allocators.\n\n\n## Examples\n\nBuild \u0026 run `example.c` program with [ckit](https://github.com/rsms/ckit):\n\n    ckit watch -r jemalloc-example\n\n\n### Generic allocator example\n\n```c\nauto mem = MemJEMalloc();\nvoid* a = memalloc(mem, size);\nvoid* b = memalloc(mem, size);\n// use a and b\nmemfree(mem, a);\nmemfree(mem, b);\n```\n\n\u003e Note on runtime overhead: When compiling with a modern version of GCC or Clang, the above\n\u003e becomes direct calls to `je_calloc` and `je_free`, eliminating any overhead.\n\n\n### Arena allocator example\n\n```c\nauto mem = MemJEMallocArenaAlloc(0);\nvoid* a = memalloc(mem, size);\nvoid* b = memalloc(mem, size);\n// use a and b\nMemJEMallocArenaFree(ma1); // free all memory allocated in the arena\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frsms%2Fckit-jemalloc","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frsms%2Fckit-jemalloc","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frsms%2Fckit-jemalloc/lists"}