[SciPy-User] numpy.histogram is slow

Chris Weisiger cweisiger@msg.ucsf....
Thu Oct 18 15:06:18 CDT 2012

On Thu, Oct 18, 2012 at 12:26 AM, Jerome Kieffer <Jerome.Kieffer@esrf.fr> wrote:
> I implemented a 1D and 2D histogram, weighted and unweighted using cython (>=0.17) in parallel.
> It is much faster than the one provided by numpy:
> 4ms vs 25ms in your case on my computer
> https://github.com/kif/pyFAI/blob/master/src/histogram.pyx

Interesting. Is there any particular reason why this code could not be
integrated into Numpy itself? A factor-of-6 improvement in speed on
multi-processor machines is significant.

> --
> Jérôme Kieffer


More information about the SciPy-User mailing list