Re:Dealing with Out-of-Memory Conditions in Rust
by dnautics on Saturday August 14, 2021 @09:26AM
(#28180430)
Preallocate that? If it's modal, you should never have more than one, and the allocator associated with the msgbox should know to use that scratch space instead of fetching new memory.
This is nontrivial in several PLs.