PyO3/pyo3

Expand performance section of the guide

Open

#3,310 opened on Jul 11, 2023

 (9 comments) (4 reactions) (0 assignees)Rust (668 forks)batch import
Good First Issue

Repository metrics

Stars
 (10,152 stars)
PR merge metrics
 (PR metrics pending)

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