PyO3/pyo3

Expand performance section of the guide

オープン

#3,310 opened on 2023/07/11

 (9 件のコメント) (4 件のリアクション) (0 人の担当者)Rust (668 件のフォーク)batch import
Good First Issue

Repository metrics

Stars
 (10,152 個のスター)
PR merge metrics
 (PR metrics pending)

説明

  • 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

コントリビューターガイド