Skip to content

Commit 70adab9

Browse files
authored
PERF improve performance of is_lexsorted (#47459)
actually this is fine
1 parent 5d880ea commit 70adab9

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

doc/source/whatsnew/v1.5.0.rst

+1
Original file line numberDiff line numberDiff line change
@@ -746,6 +746,7 @@ Performance improvements
746746
- Performance improvement in :func:`factorize` (:issue:`46109`)
747747
- Performance improvement in :class:`DataFrame` and :class:`Series` constructors for extension dtype scalars (:issue:`45854`)
748748
- Performance improvement in :func:`read_excel` when ``nrows`` argument provided (:issue:`32727`)
749+
- Performance improvement in :meth:`MultiIndex.is_monotonic_increasing` (:issue:`47458`)
749750

750751
.. ---------------------------------------------------------------------------
751752
.. _whatsnew_150.bug_fixes:

pandas/_libs/algos.pyx

+2
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,8 @@ def is_lexsorted(list_of_arrays: list) -> bint:
180180
else:
181181
result = False
182182
break
183+
if not result:
184+
break
183185
free(vecs)
184186
return result
185187

0 commit comments

Comments
 (0)