[SciPy-User] numpy.histogram is slow
Tue Oct 23 06:29:56 CDT 2012
On 23.10.2012 07:30, Jerome Kieffer wrote:
> I totally agree ... this is why I changed the algorithm to be able to
> implement it in OpenCL (using pyopencl). OpenCL on the CPU is much
> faster than cython and almost as dynamic as python when using pyopencl.
Yes, OpenCL is very cool, as are GLSL for OpenGL graphics. :)
As OpenCL and GLSL codes are plain text, compiled at runtime, we
preferably need a language that are good at text processing for using
them efficiently. And what that means, is that OpenCL and GLSL make it
possible for Python to beat the performance of C at number crunching and
3D computer graphics :-)
If I were to design a system like NumPy today, I would seriously
consider just using Python and OpenCL -- and no C.
More information about the SciPy-User