Know a great AI tool or AI news source? Submit it to AiByts
PyTorch13 min read

Making np.searchsorted up to 25× Faster in NumPy 2.5

We explore how to speed up binary search by batching independent searches with NumPy's vectorized operations. We then reformulate the algorithm so all searches progress together with only $O(1)$ additional memory, port it to C++, and achieve up to a 25× speedup over NumPy 2.4's implementation.

By blog.scientific-python.org via itamarstLobsters
Making np.searchsorted up to 25× Faster in NumPy 2.5

Read the full story

Originally published by Lobsters on Oct 10, 2026.

Read on Lobsters(opens in a new tab)

Comments

Sign in to join the discussion.

No comments yet — be the first to share your thoughts.