discuss-gnuradio
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Discuss-gnuradio] ANCI-C vs Gnuradio/C++ speeeed


From: Eric Blossom
Subject: Re: [Discuss-gnuradio] ANCI-C vs Gnuradio/C++ speeeed
Date: Sat, 13 May 2006 09:55:47 -0700
User-agent: Mutt/1.5.9i

On Fri, May 12, 2006 at 10:30:46AM -0400, Achilleas Anastasopoulos wrote:
> 
> I have noticed a huge speed dissadvantage when comparing my
> ANSI-C implementation of a Viterbi decoder with my Gnuradio 
> implementation. The core code is pretty much the same, except
> that in the Gnuradio implementation I am using STL vectors.
> 
> It seems that Gnuradio is about 20 times SLOWER than ANSI-C!!!
> I was wondering if this has to do with Gnuradio itself (buffering +
> python + other fat), or with the fact that I had to translate all
> my ANCI-C code to C++ and use STL.
> 
> Does anyone have similar experiences?
> 
> Achilleas

It shouldn't be any slower unless you're making life tough for the C++
compiler (that is, using constructs that it can't optimize away).

If you'll send me both pieces of code (off-list) along with the
benchmarking framework, I'll take a quick look at them.

Eric




reply via email to

[Prev in Thread] Current Thread [Next in Thread]