PyO3/pyo3

Expand performance section of the guide

Aberta

#3.310 aberto em 11 de jul. de 2023

 (8 comentários) (4 reações) (0 responsável)Rust (668 forks)batch import
Good First Issue

Métricas do repositório

Stars
 (10.152 estrelas)
Métricas de merge de PR
 (Mesclagem média 9d 18h) (51 fundiu PRs em 30d)

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

Guia do colaborador