We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
list_get_item_unchecked
1 parent 778b581 commit 93cb946Copy full SHA for 93cb946
1 file changed
pyo3-benches/benches/bench_list.rs
@@ -65,7 +65,7 @@ fn list_nth_back(b: &mut Bencher<'_>) {
65
});
66
}
67
68
-#[cfg(not(any(Py_LIMITED_API, Py_GIL_DISABLED)))]
+#[cfg(not(Py_LIMITED_API))]
69
fn list_get_item_unchecked(b: &mut Bencher<'_>) {
70
Python::attach(|py| {
71
const LEN: usize = 50_000;
@@ -95,7 +95,7 @@ fn criterion_benchmark(c: &mut Criterion) {
95
c.bench_function("list_nth", list_nth);
96
c.bench_function("list_nth_back", list_nth_back);
97
c.bench_function("list_get_item", list_get_item);
98
- #[cfg(not(any(Py_LIMITED_API, Py_GIL_DISABLED)))]
+ #[cfg(not(Py_LIMITED_API))]
99
c.bench_function("list_get_item_unchecked", list_get_item_unchecked);
100
c.bench_function("sequence_from_list", sequence_from_list);
101
0 commit comments