pyo3::impl_

Module freelist

Source
Expand description

Support for free allocation lists.

This can improve performance for types that are often created and deleted in quick succession.

Rather than implementing this manually, implement it by annotating a struct with #[pyclass(freelist = N)], where N is the size of the freelist.

Structs§

Enums§

⚠️ Internal Docs ⚠️ Not Public API 👉 Official Docs Here