Choosing the Right Zig Allocator: GeneralPurposeAllocator vs PageAllocator
Pick the right Zig allocator: use PageAllocator for debug builds to catch memory bugs, and switch to GeneralPurposeAllocator in release for speed and low memory usage. Follow this decision guide and sample build.zig code.