Commit Graph

31 Commits

Author SHA1 Message Date
David Hewitt de8fa18946 clippy: fixes flagged by beta toolchain 2022-08-14 07:44:11 +01:00
mejrs 984fdf57c7 Use Python:;with_gil in tests 2022-07-19 19:34:23 +02:00
Adam Reichold 74e93a2c29 Add benchmark highlighting the costs of failed calls to FromPyObject::extract. 2022-04-10 13:04:27 +02:00
Adam Reichold db109867d3 Add intern! macro which can be used to amortize the cost of creating Python objects by storing them inside a GILOnceCell. 2022-04-03 21:16:42 +02:00
mejrs 6f1cf1b662 Add more lints 2022-03-23 08:07:28 +01:00
Georg Brandl a21cf677e3 docs: remove/deprecate pyproto 2022-02-23 07:50:55 +00:00
David Hewitt 492b7e4c0f macros: optimize generated code for #[derive(FromPyObject)] 2021-12-22 08:34:05 +00:00
David Hewitt ff6fb5dcc2 benches: add bench_frompyobject 2021-12-22 00:27:13 +00:00
Bruno Kolenbrander 7dbbf7194a
Fix the main branch (#2046) 2021-12-09 01:03:50 +01:00
David Hewitt 4b2345fe80 pymethods: support __call__ proto 2021-10-23 00:06:46 +01:00
David Hewitt a20864a903 ci: test and fix s390x build 2021-08-30 13:50:44 +01:00
Aviram Hassan c6255e6734 - `PyList`, `PyTuple` and `PySequence`'s `get_item` now accepts only `usize` indices instead of `isize`.
- `PyList` and `PyTuple`'s `get_item` now always uses the safe API. See `get_item_unchecked` for retrieving index without checks.
2021-08-17 15:01:22 +01:00
David Hewitt ee9a1678d5 rust: updates for rust & clippy 1.54 2021-07-31 08:19:38 +01:00
David Hewitt dc58815143 benches: add bench_err 2021-07-24 08:50:35 +01:00
David Hewitt d6437af4a5 benches: add benchmarks for container creation 2021-06-06 08:26:20 +01:00
David Hewitt 681f9ccefa bench_tuple: add benchmark for `PyTuple::new` 2021-06-05 08:46:05 +01:00
messense fa07a5e377 Migrate all benchmark to criterion 2021-05-26 14:25:00 +08:00
David Hewitt 0cc77c77b2 benches: add bench_gil 2021-05-17 07:37:03 +01:00
David Hewitt 48823e22d6 pyproto: deprecate py_methods 2021-04-20 00:21:19 +01:00
David Hewitt c933ac223e bench_pyclass: add protocol method 2021-02-24 23:56:00 +00:00
David Hewitt fcb51677c2 benches: add benchmark for type object initialization 2021-02-18 08:19:07 +00:00
David Hewitt 02b90c462f benches: add map / set extraction 2020-11-26 10:02:59 +00:00
David Hewitt d1248d5743 benches: add bench_call 2020-11-25 20:54:12 +00:00
Alex Gaynor c54b35f297 Added a benchmark for set iter 2020-09-08 17:47:49 -04:00
David Hewitt e1533129c9 Remove bench_pyclass 2020-05-03 11:12:31 +01:00
David Hewitt be09aa00aa New benchmarks 2020-05-02 23:38:36 +01:00
David Hewitt fe57f64435 Improve performance on pointer drop
Co-Authored-By: Yuji Kanagawa <yuji.kngw.80s.revive@gmail.com>
2020-04-09 08:51:43 +01:00
Samuele Maci 7034332f46 Address clippy::inconsistent_digit_grouping issues 2019-08-17 14:10:35 +02:00
konstin 936f0153e8 Migrate to rust 2018 2019-02-01 14:23:29 +01:00
kngwyu be77846979 Use LinkedList<[T; 256]> in ReleasePool 2018-11-21 16:00:26 +09:00
kngwyu 6222232c21 Add bench_dict 2018-11-14 15:40:28 +09:00