PyO3/pyo3

Expand performance section of the guide

开放

#3,310 创建于 2023年7月11日

 (9 条评论) (4 个反应) (0 位负责人)Rust (668 个派生)batch import
Good First Issue

仓库指标

星标
 (10,152 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

  • 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

贡献者指南