PyO3/pyo3

Expand performance section of the guide

Open

#3,310 opened on Jul 11, 2023

View on GitHub
 (8 comments) (4 reactions) (0 assignees)Rust (10,152 stars) (668 forks)batch import
Good First Issue

Description

  • Overhead of conversions (i.e. PyList vs Vec etc.)
  • String intern!
  • Vec<u8> becoming list[int] (and thus being very slow), usage of Cow<[u8]> as an alternative
  • #[pyo3(get)] deep-cloning non-Py data
  • dictionary dispatch, i.e. look-up based on type object identity

Contributor guide