[PD] sending image from of / libpd

Mathieu Bouchard matju at artengine.ca
Mon Aug 29 06:54:29 CEST 2011


On Mon, 29 Aug 2011, Dan Wilcox wrote:

> I was talking about sending a large list through libpd which, I assume, 
> is doing some sort of copying of floats as it translates from the libpd 
> api to the internal pd api.

Oh, yeah... if you use z_libpd.h, it copies the floats, whereas with 
m_pd.h, you have the option to have your data as atoms in the first place, 
so that they don't have to be copied.

> Besides, isn't there some sort of limit on the length of lists or does 
> libpd handle this for you?

With z_libpd.h, you have an artificial limit of 32 atoms per message, 
whereas with m_pd.h, there's no formal limit ; in practice the OS will 
limit you to something like 1000000 atoms on the stack at once, for 
example. On 32-bit Linux, the limit can be as high as 8000000 atoms (64 
megs) but I don't remember what the default limits are.

  _______________________________________________________________________
| Mathieu Bouchard ---- tél: +1.514.383.3801 ---- Villeray, Montréal, QC


More information about the Pd-list mailing list