Hey everybody,<div><br></div><div>After noticing my test SndBuf programs were eating more memory than I expected I started looking around on the list and wiki but couldn't find any relevant discussions.  Here's how it goes:</div>

<div><br></div><div><div>airj:~ josh$ chuck --version</div><div><br></div><div>chuck version: 1.2.1.3 (dracula)</div><div>   exe target: mac os x : universal binary</div><div>   <a href="http://chuck.cs.princeton.edu/">http://chuck.cs.princeton.edu/</a></div>

<div><br></div></div><div><div>airj:~ josh$ cat tmp/<a href="http://buf.ck">buf.ck</a></div><div>SndBuf b;</div><div>"tmp/bigfile.wav" => b.read;</div><div>while (1::second => now);</div><div>airj:~ josh$ du -sk tmp/bigfile.wav</div>

<div>769308  tmp/bigfile.wav</div><div>airj:~ josh$ chuck --loop &</div><div>[1] 20706</div><div>airj:~ josh$ ps -orss= 20706</div><div>  4484</div><div>airj:~ josh$ chuck + tmp/<a href="http://buf.ck">buf.ck</a></div>

<div>airj:~ josh$ [chuck](VM): sporking incoming shred: 1 (<a href="http://buf.ck">buf.ck</a>)...</div><div><br></div><div>airj:~ josh$ ps -orss= 20706</div><div>1531692</div><div>airj:~ josh$</div></div><div><br></div><div>

Looks like ChucK/SndBuf's resident size is growing a little under 2x the size of the file I'm trying to buffer.  Any ideas?</div><div><br></div><div>Cheers,</div><div>-josh</div>