File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ fn list_nth_back(b: &mut Bencher<'_>) {
6565 } ) ;
6666}
6767
68- #[ cfg( not( any ( Py_LIMITED_API , Py_GIL_DISABLED ) ) ) ]
68+ #[ cfg( not( Py_LIMITED_API ) ) ]
6969fn list_get_item_unchecked ( b : & mut Bencher < ' _ > ) {
7070 Python :: attach ( |py| {
7171 const LEN : usize = 50_000 ;
@@ -95,7 +95,7 @@ fn criterion_benchmark(c: &mut Criterion) {
9595 c. bench_function ( "list_nth" , list_nth) ;
9696 c. bench_function ( "list_nth_back" , list_nth_back) ;
9797 c. bench_function ( "list_get_item" , list_get_item) ;
98- #[ cfg( not( any ( Py_LIMITED_API , Py_GIL_DISABLED ) ) ) ]
98+ #[ cfg( not( Py_LIMITED_API ) ) ]
9999 c. bench_function ( "list_get_item_unchecked" , list_get_item_unchecked) ;
100100 c. bench_function ( "sequence_from_list" , sequence_from_list) ;
101101}
You can’t perform that action at this time.
0 commit comments