Back when I did some high perf Python, I’d define my data at C structs and bump allocate those structs in a list using the cffi.
It is not unlike defining your data model for SQL so that you can have sane data access.
It is not unlike defining your data model for SQL so that you can have sane data access.
The term isn't familiar to me, and when I try to look it up I get almost exclusively Rust-related results. I guess you mean https://en.wikipedia.org/wiki/Region-based_memory_management , which I grew up calling "pool allocation".
But pool allocation works as well. The idea is to go from a chonky representation to a portable compact representation of a C-struct but still have the Python accessors to this data look idiomatic.