[Ardour-Dev] Hello, some tech talk, etc.

Florian Paul Schmidt mista.tapas at gmx.net
Sat Jul 7 02:56:36 PDT 2012

Hi Fons,

On 07/07/2012 01:24 AM, Fons Adriaensen wrote:
> On Fri, Jul 06, 2012 at 06:58:01PM +0200, Razvan Cojocaru wrote:
>> Compilers have come a long way from 1992. And how one's
>> used C++ is just as important as for how long one's used it.
>> One can pick a small subset of C++ and use only that for
>> decades.


> A few days ago, I wrote the same thing (functionally
> at least) as a classical PLL. The inner loop over all
> samples is something like 20 short lines of C++, maybe
> 1 percent of the original. Yet executing in the same
> environment, it takes 17% CPU. And I don't understand
> why - it performs a tiny subset of the calculations
> done by the original code.

Did you try profiling the code? Maybe that holds some instructive 
surprises :D



More information about the Ardour-Dev mailing list