pyo3/benches
Adam Reichold bd7aed4b12 Add implementation of Iterator::size_hint for PyIterator
When the Python iterator backing `PyIterator` has a `__length_hint__` special
method, we can use this as a lower bound for Rust's `Iterator::size_hint` to
e.g. support pre-allocation of collections.

This is implemented using `PyObject_LengthHint` which is not available in the
stable ABI and hence so is `Iterator::size_hint`. This should be fine since this
is an optimization in any case and the stable ABI is expected to have slightly
worse performance overall.
2023-07-09 10:16:20 +02:00
..
bench_any.rs
bench_call.rs
bench_comparisons.rs
bench_decimal.rs
bench_dict.rs
bench_err.rs
bench_extract.rs
bench_frompyobject.rs
bench_gil.rs
bench_intern.rs
bench_list.rs
bench_pyclass.rs
bench_pyobject.rs
bench_set.rs
bench_tuple.rs