On Mon, 7 Jul 2008, Pieter Palmers wrote:

> Kjetil S. Matheussen wrote:
> ...
>>    *Manually clear allocated memory instead of using calloc.
> What is the advantage in doing that? (/me sees an opportunity to learn)
>

You are not the first one to ask. :-)
I doubt it makes any difference, but it was faster to change
jack_capture than checking various implementations of calloc.
The background is that according to wikipedia,
calloc may be created by using copy-on-write
(http://en.wikipedia.org/wiki/Copy-on-write), which would
be harmful when running realtime.

_______________________________________________
Linux-audio-dev mailing list
[email protected]
http://lists.linuxaudio.org/mailman/listinfo/linux-audio-dev

Reply via email to