Re: list of unique values from a TTree

From: <wlavrijsen_at_lbl.gov>
Date: Fri, 25 May 2012 11:06:22 -0700


Noel,

> There are no limits to the length of the array here (just your memory) and
> tree_to_ndarray is fast since the conversion is performed by a compiled C
> extension module.

using a C extension module for the conversion makes no difference (execution within the C code itself is faster, though), as in the end, calls still go through the same CPython API that does the conversion. Numpy does benefit from a customized buffer interface, but that'd only work for builtin types.

Best regards,

            Wim

-- 
WLavrijsen_at_lbl.gov    --    +1 (510) 486 6411    --    www.lavrijsen.net
Received on Fri May 25 2012 - 20:06:32 CEST

This archive was generated by hypermail 2.2.0 : Tue May 29 2012 - 17:50:02 CEST