{"id":18314222,"url":"https://github.com/stiliyandr/allocator","last_synced_at":"2025-04-09T12:41:06.753Z","repository":{"id":161476935,"uuid":"276164263","full_name":"StiliyanDr/allocator","owner":"StiliyanDr","description":"A C++14 allocator implemented with buddy allocation.","archived":false,"fork":false,"pushed_at":"2020-08-14T09:24:00.000Z","size":283,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-15T06:41:22.654Z","etag":null,"topics":["algorithms","allocator","cpp","cpp14","data-structures"],"latest_commit_sha":null,"homepage":"","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/StiliyanDr.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":"2020-06-30T17:19:03.000Z","updated_at":"2020-08-14T09:24:03.000Z","dependencies_parsed_at":null,"dependency_job_id":"ef15bc6d-de60-4089-8f0b-464268083585","html_url":"https://github.com/StiliyanDr/allocator","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/StiliyanDr%2Fallocator","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StiliyanDr%2Fallocator/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StiliyanDr%2Fallocator/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/StiliyanDr%2Fallocator/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/StiliyanDr","download_url":"https://codeload.github.com/StiliyanDr/allocator/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248045216,"owners_count":21038552,"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":["algorithms","allocator","cpp","cpp14","data-structures"],"created_at":"2024-11-05T16:30:52.735Z","updated_at":"2025-04-09T12:41:06.729Z","avatar_url":"https://github.com/StiliyanDr.png","language":"C++","readme":"# allocator\nA C++14 implementation of the buddy memory allocation algorithm.\n  \n## Main features\nThe algorithm is encapsulated in an object which is constructed with a pointer to the memory block to be managed and its size.\n  \nAllocation and deallocation take time O(logN), where N is the first power of two greater-than or equal to the managed block's size.\n  \nIn terms of memory consumption for bookkeeping, no more than 5-6% of the memory block is used for big enough blocks, say bigger than 1KB. For large blocks, say at least 4KB, the memory consumption becomes insignificantly small - around 1-2%. The algorithm is not well suited to small allocations so the second figure is more indicative.\n  \nMove operations are also supported. The object's behaviour is illustrated in its [unit tests](https://github.com/StiliyanDr/allocator/blob/master/unit_tests/buddyallocatortests.cpp).\n  \n## Documentation\nDocumentation, notes on algorithm design, complexity and correctness can be found in the project's [docs](https://cpp-allocators.readthedocs.io).\n  \n## Testing\nThe project's unit tests are written with [Catch2](https://github.com/catchorg/Catch2) and can be found [here](https://github.com/StiliyanDr/allocator/tree/master/unit_tests).\n  \n## References\n[Allocation Adventures 3: The Buddy Allocator](http://bitsquid.blogspot.com/2015/08/allocation-adventures-3-buddy-allocator.html)  \n[The Art of Computer Programming, Vol. 1](https://en.wikipedia.org/wiki/The_Art_of_Computer_Programming), Donald Knuth\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstiliyandr%2Fallocator","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstiliyandr%2Fallocator","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstiliyandr%2Fallocator/lists"}