{"id":16260131,"url":"https://github.com/kautenja/object-pool","last_synced_at":"2025-04-08T13:50:01.277Z","repository":{"id":97116616,"uuid":"207897399","full_name":"Kautenja/object-pool","owner":"Kautenja","description":"A simple template implementation of an object pool in C++.","archived":false,"fork":false,"pushed_at":"2019-09-11T20:26:04.000Z","size":710,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-14T10:18:24.787Z","etag":null,"topics":["cpp11","header-only","object-pool","tested"],"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/Kautenja.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-09-11T20:07:27.000Z","updated_at":"2024-06-13T03:23:23.000Z","dependencies_parsed_at":"2023-04-27T22:51:22.891Z","dependency_job_id":null,"html_url":"https://github.com/Kautenja/object-pool","commit_stats":{"total_commits":8,"total_committers":3,"mean_commits":"2.6666666666666665","dds":0.25,"last_synced_commit":"d431407198729620074a601d1a87aac0d9875b9b"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kautenja%2Fobject-pool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kautenja%2Fobject-pool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kautenja%2Fobject-pool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Kautenja%2Fobject-pool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Kautenja","download_url":"https://codeload.github.com/Kautenja/object-pool/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247854991,"owners_count":21007470,"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":["cpp11","header-only","object-pool","tested"],"created_at":"2024-10-10T16:06:27.731Z","updated_at":"2025-04-08T13:50:01.252Z","avatar_url":"https://github.com/Kautenja.png","language":"C++","readme":"# Object Pool\n\n[![build-status][]][build-server]\n\n[build-status]: https://travis-ci.com/Kautenja/object-pool.svg\n[build-server]: https://travis-ci.com/Kautenja/object-pool\n\n## Usage\n\nSimply add [include/object_pool.hpp](include/object_pool.hpp) to your C++\nproject either by copying directly or using git submodules.\n\n## Classes\n\nThere are two working implementations of the object pool, (1) the object\nmanaged pool that stores objects on the stack using a vector, and (2) the\nobject pointer pool that stores objects dynamically in memory.\n[benchmark/benchmark.cpp](benchmark/benchmark.cpp) contains code to benchmark\nthe objects (using doubles as the template object type).\n\n| Class               | Object location   | `get` \u0026 `put` avg. time |\n|:--------------------|:------------------|:------------------------|\n| `ObjectManagedPool` | Stack             | 194_ns_ (267_ns_ std.)\n| `ObjectPointerPool` | Heap              | 47_ns_ (2_ns_ std.)\n\nThe `ObjectPool` class defaults to the faster (and simpler) `ObjectPointerPool`\nclass.\n\n## Testing\n\nTo compile and run the [test suite](test):\n\n```shell\nscons test\n```\n\n## Benchmarking\n\nTo run benchmarks:\n\n```shell\nscons benchmark/benchmark.cpp\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkautenja%2Fobject-pool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkautenja%2Fobject-pool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkautenja%2Fobject-pool/lists"}