{"id":16847317,"url":"https://github.com/koute/memory-pool","last_synced_at":"2025-04-11T06:32:26.996Z","repository":{"id":31420054,"uuid":"34983470","full_name":"koute/memory-pool","owner":"koute","description":"A global, thread-safe memory pool.","archived":false,"fork":false,"pushed_at":"2015-05-03T11:38:25.000Z","size":116,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-25T04:26:50.742Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"Alamofire/Alamofire","license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/koute.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}},"created_at":"2015-05-03T11:20:58.000Z","updated_at":"2020-02-25T16:59:04.000Z","dependencies_parsed_at":"2022-09-26T20:21:04.524Z","dependency_job_id":null,"html_url":"https://github.com/koute/memory-pool","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/koute%2Fmemory-pool","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koute%2Fmemory-pool/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koute%2Fmemory-pool/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/koute%2Fmemory-pool/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/koute","download_url":"https://codeload.github.com/koute/memory-pool/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248355701,"owners_count":21090074,"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":[],"created_at":"2024-10-13T13:07:30.086Z","updated_at":"2025-04-11T06:32:26.971Z","avatar_url":"https://github.com/koute.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# A global, thread-safe memory pool\n\n[![Build Status](https://travis-ci.org/koute/memory-pool.svg)](https://travis-ci.org/koute/memory-pool)\n\n[API documentation](https://koute.github.io/memory-pool/memory_pool/index.html)\n\nA Rust library providing a global, thread-safe memory pool,\nideal for when you need a temporary scratch buffer but you\ndon't want to be constantly allocating memory.\n\n```rust\nmemory_pool::borrow( |aux: \u0026mut String| {\n    aux.push_str( \"Do you like cupcakes?\" );\n});\n```\n\n```rust\nmemory_pool::borrow( |vec: \u0026mut Vec\u003c u32 \u003e| {\n    vec.push( 1 );\n    vec.push( 2 );\n    vec.push( 3 );\n});\n```\nYou can also manually acquire and release memory:\n\n```rust\nlet mut buffer: String = memory_pool::acquire();\nbuffer.push_str( \"I like cupcakes!\" );\nmemory_pool::release( buffer );\n```\n\n## Usage\n\nAdd this to your `Cargo.toml`:\n\n```toml\n[dependencies]\nmemory-pool = \"0.1.0\"\n```\n\nThen add this to your crate root:\n\n```rust\nextern crate memory_pool;\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoute%2Fmemory-pool","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkoute%2Fmemory-pool","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkoute%2Fmemory-pool/lists"}