{"id":29027622,"url":"https://github.com/defi0x1/optimized-heap-allocation","last_synced_at":"2026-06-24T10:31:24.343Z","repository":{"id":270313727,"uuid":"909979759","full_name":"defi0x1/optimized-heap-allocation","owner":"defi0x1","description":"Exp: Optimized CU, increase heap memory by Optimizing Bump Heap Allocation","archived":false,"fork":false,"pushed_at":"2025-08-29T20:54:09.000Z","size":280,"stargazers_count":0,"open_issues_count":3,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-14T10:02:32.094Z","etag":null,"topics":["cu-optimization","heap-memory-allocator","solana-program","solana-program-test"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/defi0x1.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2024-12-30T07:46:05.000Z","updated_at":"2024-12-31T04:11:38.000Z","dependencies_parsed_at":"2025-06-13T04:45:42.720Z","dependency_job_id":"9449f6fc-b2e3-4069-829b-4cff4c131fc1","html_url":"https://github.com/defi0x1/optimized-heap-allocation","commit_stats":null,"previous_names":["docongminh/bump-head-allocation","docongminh/bump-allocator-program","defi0x1/optimized-heap-allocation","docongminh/optimized-heap-allocation"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/defi0x1/optimized-heap-allocation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/defi0x1%2Foptimized-heap-allocation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/defi0x1%2Foptimized-heap-allocation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/defi0x1%2Foptimized-heap-allocation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/defi0x1%2Foptimized-heap-allocation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/defi0x1","download_url":"https://codeload.github.com/defi0x1/optimized-heap-allocation/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/defi0x1%2Foptimized-heap-allocation/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34726642,"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-06-24T02:00:07.484Z","response_time":106,"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":["cu-optimization","heap-memory-allocator","solana-program","solana-program-test"],"created_at":"2025-06-26T06:37:14.323Z","updated_at":"2026-06-24T10:31:24.318Z","avatar_url":"https://github.com/defi0x1.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Exp: Optimizing bump heap allocation\r\n**Purpose:** An experience for optimizing CU, increase the available heap memory for CPI calls between programs\r\n\r\nFor rust native\r\n```bash\r\ncd rust-native \u0026\u0026 cargo run release\r\n```\r\n\r\nFor solana program\r\n```bash\r\ncargo test --manifest-path tests/Cargo.toml -- --nocapture\r\n```\r\n\r\n**Result amount of CU optimized**\r\n\r\n*Heap Allocation*\r\n```rust\r\nAllocate 1024 bytes consumed 1500 compute units\r\nAllocate 10240 bytes consumed 1800 compute units\r\nAllocate 102400 bytes consumed 2200 compute units\r\n```\r\n\r\n*Optimizing Bump Heap Allocation*\r\n```rust\r\nAllocate 1024 bytes consumed 1200 compute units\r\nAllocate 10240 bytes consumed 1600 compute units\r\nAllocate 102400 bytes consumed 2000 compute units\r\n```\r\n\r\nNote: Sometime by miss-match version, build by command:\r\n```bash\r\nRUSTUP_TOOLCHAIN=\"nightly-2024-11-19\" anchor build\r\n```\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdefi0x1%2Foptimized-heap-allocation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdefi0x1%2Foptimized-heap-allocation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdefi0x1%2Foptimized-heap-allocation/lists"}