Re: Re: pyroot objects

From: <wlavrijsen_at_lbl.gov>
Date: Thu, 11 Aug 2011 08:25:30 -0700


Yngve,

> Well no, to get it faster in a python script will be difficult I guess
> (unless I did some stupid mistakes which slows things down), but one could
> write a c implementation (or cython as suggested), since numpy is also
> written in C...

right, but only if you are CPU limited (which is likely). The switching off of branches and not looping over all of them as mentioned would help you if you are I/O limited, even in python.

In PyPy both numpy and cppyy will be at the interpreter level and there it would be possible to short-cut. For PyROOT, it's not a given that a dependency on numpy is a good idea. Rather, an additional python extension module on top of both would then have to be written.

Best regards,

            Wim

-- 
WLavrijsen_at_lbl.gov    --    +1 (510) 486 6411    --    www.lavrijsen.net
Received on Thu Aug 11 2011 - 17:23:21 CEST

This archive was generated by hypermail 2.2.0 : Thu Aug 11 2011 - 17:50:02 CEST