[Numpy-discussion] Array pooling

Simon Burton simon at arrowtheory.com
Wed Aug 23 07:00:56 CDT 2006


On Tue, 22 Aug 2006 23:51:01 -0300 (ART)
Carlos Pita <carlosjosepita at yahoo.com.ar> wrote:


> Hi! I'm writting a real time sound synthesis framework where processing units are interconnected via numpy arrays. These buffers are all the same size and type, so it would be easy and convenient pooling them in order to avoid excesive creation/destruction of arrays (consider that thousands of them are acquired and released per second, but just a few dozens used at the same time). But first I would like to know if numpy implements some pooling mechanism by itself. 

I don't think so.

> Could you give me some insight on this? Also, is it possible to obtain an uninitialized array?

numpy.empty

> I mean, sometimes I don't feel like wasting valuable cpu clocks filling arrays with zeros, ones or whatever.
> Thank you in advance.
> Regards,
> Carlos

Sounds like fun.

Simon.

> 
> 
> 
>   
>  		
> ---------------------------------
>  Preguntá. Respondé. Descubrí.
>  Todo lo que querías saber, y lo que ni imaginabas,
>  está en Yahoo! Respuestas (Beta).
>  Probalo ya! 


-- 
Simon Burton, B.Sc.
Licensed PO Box 8066
ANU Canberra 2601
Australia
Ph. 61 02 6249 6940
http://arrowtheory.com 




More information about the Numpy-discussion mailing list