Trait pyo3::freelist::PyClassWithFreeList [−][src]
pub trait PyClassWithFreeList {
fn get_free_list(py: Python<'_>) -> &mut FreeList<*mut PyObject>;
}
Expand description
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.