~/talk

"Using Rust custom allocators to optimize Solana compute units"

Talkat Blockchain Community Day 2024 · 2024-06-10..06-14· [rust, blockchain]
links:none on file
slides:none on file

Shows how to replace Solana’s 32KB/256KB default heap with a Rust global allocator backed by the first account data so state survives across transactions, raising usable heap to 10MB and avoiding repeated serialization for Neon EVM. Uses linked-list-allocator crate and Box::leak to store a pointer at a fixed address (example uses 0x46) and requires careful init/drop logic. Benchmarks target compute unit limits (default 200,000, max 1,400,000); example test runs and full code is on GitHub.

AI-written summary · about

  1. 0:00Introduction to workshop
  2. 2:04Solana program memory layout
  3. 10:58Default Solana heap allocator
  4. 13:45Compute units and NE EVM context
  5. 16:15Persistent heap across transactions
  6. 21:52Implementing custom allocator
  7. 27:39Key conclusions and takeaways
  8. 29:36Q&A and code walkthrough
~/search
type to search 8,222 conferences, 162,397 speakers and 219,688 talks
~/help
cmdctrl k
search every conference, speaker and series
/
focus the filter search
h
home
c
conferences
s
speakers
e
series
t
light / dark — the status bar button does the same
← →
on a talk: 5 seconds back / forward
0–9
on a talk: jump to 0%–90% of the recording
?
this help
esc
close this, then clear every filter — or just the search, while you are typing in it

Ignored while you are typing. Pages without a filter rail have no search to focus.