Skip to content

Commit b8b6fe2

Browse files
committed
ENH: don't boundscheck or wraparound
1 parent 2c2e8e6 commit b8b6fe2

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

pandas/src/reindex.pyx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -559,8 +559,8 @@ def outer_join_indexer(ndarray[int64_t] left, ndarray[int64_t] right):
559559
lindexer[:count].copy(),
560560
rindexer[:count].copy())
561561

562-
# @cython.wraparound(False)
563-
# @cython.boundscheck(False)
562+
@cython.wraparound(False)
563+
@cython.boundscheck(False)
564564
def take_axis0(ndarray[float64_t, ndim=2] values,
565565
ndarray[int32_t] indexer,
566566
out=None):

scripts/bench_join.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ def bench_python(n=100000, pct_overlap=0.20):
135135
import gc
136136
ns = [2, 3, 4, 5, 6]
137137
iterations = 50
138-
K = 5
138+
K = 1
139139
pct_overlap = 0.2
140140
kinds = ['outer', 'left', 'inner']
141141

0 commit comments

Comments
 (0)