numpy uses searchsorted to compute the bin number each sample falls into (see here). xhistogram currently use digitize (see here).
Refactoring to use searchsorted would come with performance improvements and would simplify how we align our bin definitions with numpy, potentially also solving #25.
numpy uses
searchsorted
to compute the bin number each sample falls into (see here). xhistogram currently usedigitize
(see here).Refactoring to use
searchsorted
would come with performance improvements and would simplify how we align our bin definitions with numpy, potentially also solving #25.