bpo-24700: Add a fast path for comparing array.array of equal type#3009
bpo-24700: Add a fast path for comparing array.array of equal type#3009pitrou merged 1 commit intopython:masterfrom
Conversation
There was a problem hiding this comment.
It confused me that this can be jumped into even when sizes are equal. I would suggest renaming equal_except_size to something else. Perhaps compare_sizes?
There was a problem hiding this comment.
Looks like this change was reversed.
|
This lacks a NEWS entry as produced by the blurb utility. Could you add one? |
|
One thing: how does this fare on arrays of NaNs? Currently we have: |
|
Right, didn't check to handle it. I added a test case for NaN - even if the optimization doesn't get merged, the test case would still be nice to have. I realized I also missed the |
Fair enough. Someone else can re-add a fast path for floats if they want to. |
https://bugs.python.org/issue24700