{"id":51493242,"url":"https://github.com/unrays/unsynchronized-chunk-allocator","last_synced_at":"2026-07-07T12:30:36.895Z","repository":{"id":359653403,"uuid":"1246976440","full_name":"unrays/unsynchronized-chunk-allocator","owner":"unrays","description":"A C++ unsynchronized chunk-based memory allocator with monotonic allocation strategy for high-performance workloads.","archived":false,"fork":false,"pushed_at":"2026-05-22T20:09:42.000Z","size":31,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-05-22T22:28:25.144Z","etag":null,"topics":["allocator","arena-allocator","cache-friendly","compiler-backend","cpp","cpp-library","custom-allocator","data-structures","high-performance","low-level-programming","memory-allocator","memory-management","memory-pool","monotonic-allocator","performance","pmr","quebec","systems-programming","zero-overhead"],"latest_commit_sha":null,"homepage":"https://unrays.github.io/unsynchronized-chunk-allocator/","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsl-1.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/unrays.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":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2026-05-22T19:06:04.000Z","updated_at":"2026-05-22T20:09:46.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/unrays/unsynchronized-chunk-allocator","commit_stats":null,"previous_names":["unrays/unsynchronized-chunk-allocator"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/unrays/unsynchronized-chunk-allocator","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unrays%2Funsynchronized-chunk-allocator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unrays%2Funsynchronized-chunk-allocator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unrays%2Funsynchronized-chunk-allocator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unrays%2Funsynchronized-chunk-allocator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/unrays","download_url":"https://codeload.github.com/unrays/unsynchronized-chunk-allocator/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/unrays%2Funsynchronized-chunk-allocator/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35228621,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-07-07T02:00:07.222Z","response_time":90,"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":["allocator","arena-allocator","cache-friendly","compiler-backend","cpp","cpp-library","custom-allocator","data-structures","high-performance","low-level-programming","memory-allocator","memory-management","memory-pool","monotonic-allocator","performance","pmr","quebec","systems-programming","zero-overhead"],"created_at":"2026-07-07T12:30:34.581Z","updated_at":"2026-07-07T12:30:36.893Z","avatar_url":"https://github.com/unrays.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Unsynchronized Chunk Allocator\n\nA C++ unsynchronized chunk-based memory allocator with monotonic allocation strategy for high-performance workloads. This project is part of the **EXOTIC::memory** library.\n\n## Overview\n\nThis project started as a technical challenge I set for myself within the scope of a compiler-related work.\n\nIt required a solid understanding of allocators, as they form the foundation of precise lifetime management and efficient data structures in low-level systems.\n\nTo approach this, I studied the design of `std::pmr` and related allocator models, taking notes and extracting the core ideas that I found most relevant.\n\nIt took me around three weeks to arrive at a functional implementation.\n\nThis is not a simple copy of an existing allocator from the internet. While I drew inspiration from established standards and allocator design principles, I implemented the system in a very educational and deliberate way, focusing on clarity and understanding.\n\nI’m genuinely proud of this work, and it will be used as part of a compiler project where it fulfills its original goal.\n\n---\n\n## Example Usage\n\n```cpp\n// In this case, we use a monotonic atomic buffer as the memory backend\nexotic::memory::monotonic_atomic_buffer upstream(1 \u003c\u003c 20);\n\nexotic::memory::unsynchronized_chunk_allocator\u003cint\u003e allocator(\u0026upstream);\n\n// Allocate raw memory for 10 ints\nint* data = allocator.allocate(10);\n\n// Construct objects in-place\nallocator.construct(data, 42);\n\n// High-level allocation helper\nauto* obj = allocator.new_object\u003cint\u003e(123);\n\n// Destroy (no-op deallocation model)\nallocator.destroy(obj);\n```\n\n---\n\n## Notes\n\nThis project is intentionally minimal in scope and focused on learning and system-level understanding rather than being a production-ready general-purpose allocator. This project is the result of the skills I have undoubtedly acquired over the past 7 months since I started learning C++. Also, the very library-like aspect with `exotic::memory` is simply because it looks cooler and more professional :) \n\n## License\n\nThis project is licensed under the Boost Software License. See the [LICENSE](LICENSE) file for details.\n\n\u003cp align=\"center\"\u003e\u003csub\u003e© Félix-Olivier Dumas 2026\u003c/sub\u003e\u003c/p\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funrays%2Funsynchronized-chunk-allocator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Funrays%2Funsynchronized-chunk-allocator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Funrays%2Funsynchronized-chunk-allocator/lists"}