PERF: performance regression in replace() corner cases #38086
Labels
Performance
Memory or execution speed performance
Regression
Functionality that used to work in a prior pandas version
Milestone
ASV shows a gigantic regression (14629.25x) in a certain
replace
benchmark: https://pandas.pydata.org/speed/pandas/#replace.ReplaceList.time_replace_list?python=3.8&Cython=0.29.21&p-inplace=True&commits=07559156-dbee8faeThe simplified case is:
Compared to 1.1, I don't see such a huge difference, but still a decent slowdown (x10).
Now, in this case, we have integer columns, but trying to replace infinity, which of course can never be present. So maybe before we had some shortcut for that.
This also seems quite a cornercase, though. So not sure how critical the regression is.
The text was updated successfully, but these errors were encountered: