//
Search across all documentation pages
10 pages in this section.
How Anchor programs leave the happy path: zero-copy loaders, remaining_accounts, realloc, custom types, feature flags, CU and binary size, and native/Pinocchio interop.
Learn how to use zero-copy accounts with bytemuck and AccountLoader to manage large state and save compute units by avoiding Borsh serialization.
Control compilation of Anchor programs using Cargo features and #[cfg()]. Gate debug logs, dev instructions, and cluster-specific code.
Optimize Anchor 0.32.1 programs with best practices for performance and advanced patterns. Learn to profile CU, use zero_copy, and plan account migrations.