{"id":23736731,"url":"https://github.com/jmcomets/tcmalloc-rs","last_synced_at":"2025-07-20T06:33:33.785Z","repository":{"id":57669370,"uuid":"135174925","full_name":"jmcomets/tcmalloc-rs","owner":"jmcomets","description":"A drop-in GlobalAlloc implementation using tcmalloc from gperftools.","archived":false,"fork":false,"pushed_at":"2023-11-02T05:58:46.000Z","size":24,"stargazers_count":19,"open_issues_count":3,"forks_count":8,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-06-29T09:07:19.127Z","etag":null,"topics":["allocator","profiling"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/tcmalloc","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jmcomets.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-05-28T14:53:04.000Z","updated_at":"2025-06-03T08:12:34.000Z","dependencies_parsed_at":"2022-09-26T20:40:53.103Z","dependency_job_id":null,"html_url":"https://github.com/jmcomets/tcmalloc-rs","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/jmcomets/tcmalloc-rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmcomets%2Ftcmalloc-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmcomets%2Ftcmalloc-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmcomets%2Ftcmalloc-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmcomets%2Ftcmalloc-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jmcomets","download_url":"https://codeload.github.com/jmcomets/tcmalloc-rs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jmcomets%2Ftcmalloc-rs/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266076371,"owners_count":23872746,"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":["allocator","profiling"],"created_at":"2024-12-31T07:37:27.993Z","updated_at":"2025-07-20T06:33:33.760Z","avatar_url":"https://github.com/jmcomets.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"tcmalloc\n========\n\nA drop-in [`GlobalAlloc`][1] implementation using `tcmalloc` from [gperftools][2].\n\n[![Travis badge](https://travis-ci.org/jmcomets/tcmalloc-rs.svg?branch=master)](https://travis-ci.org/jmcomets/tcmalloc-rs)\n[![crates.io badge](https://img.shields.io/crates/v/tcmalloc.svg)](https://crates.io/crates/tcmalloc)\n\n# Usage\n\nRequires Rust 1.28+\n\n```rust\nextern crate tcmalloc;\n\nuse tcmalloc::TCMalloc;\n\n#[global_allocator]\nstatic GLOBAL: TCMalloc = TCMalloc;\n```\n\nAlso note that you can only define one *global* allocator per application.\n\nBy default this crate expects to link to a system-installed tcmalloc. To build\nthe bundled copy of tcmalloc, enable the \"bundled\" feature. Note the [caveats\nabout profiling and libunwind/libgcc on 64-bit linux][4] \u0026mdash; they are not\nbuilt by this crate, and tcmalloc will silently link to versions of both that\ncan cause profiling deadlocks.\n\n\n\n[1]: https://doc.rust-lang.org/nightly/core/alloc/trait.GlobalAlloc.html\n[2]: https://github.com/gperftools/gperftools\n[3]: https://doc.rust-lang.org/nightly/unstable-book/language-features/global-allocator.html\n[4]: https://github.com/gperftools/gperftools/blob/master/INSTALL#L33\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmcomets%2Ftcmalloc-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjmcomets%2Ftcmalloc-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjmcomets%2Ftcmalloc-rs/lists"}