Trait pyo3::freelist::PyObjectWithFreeList
[−]
[src]
pub trait PyObjectWithFreeList: PyTypeInfo { fn get_free_list() -> &'static mut FreeList<*mut PyObject>; }
Implementing this trait for custom class adds free allocation list to class. The performance improvement applies to types that are often created and deleted in a row, so that they can benefit from a freelist.