[music-dsp] C# Interpolation Code
Christopher Weare
chriswea at microsoft.com
Wed Jan 28 20:20:32 EST 2004
I do a lot of numerical work in C# at work and have not seen a factor of
10 deficit in performance. I deal mostly with large scale analysis of
text documents and have implemented several Machine Learning techniques
in C# and C++ (and TSQL too but please don't tell anyone.)
C++ is definitely faster but often only by 15% to 20% for large and
complex applications. There are times when the difference is more
extreme but this tends to be the exception, not the rule.
I can imagine that it would take some work to get a large FFT to run
efficiently in C# but I have never attempted it so I am only boldly
speculating. However, for functions like FFT or convolution with large
kernels it is a straight forward process to link to unmanaged code when
you need the performance.
If you are required to dev in C# then I suggest you code as much of the
app as you can in C# and link to unmanaged code only in the few places
it makes sense.
-chris
-----Original Message-----
From: music-dsp-bounces at shoko.calarts.edu
[mailto:music-dsp-bounces at shoko.calarts.edu] On Behalf Of Roger Waters
Sent: Wednesday, January 28, 2004 3:08 PM
To: a list for musical digital signal processing
Subject: RE: [music-dsp] C# Interpolation Code
Thank you for your replies!
The company I work for uses .NET as their main development platform.
Angelo, why exactly is C# slower? Would you recommend C++ instead? What
about VC++?
Roger.
On Tue, 27 Jan 2004 17:07:00 +0100, "Angelo Farina"
<farina at pcfarina.eng.unipr.it> said:
> I don't think that C# is a good programming language for DSP... We
tested
> it
> some months ago, and in the benchmark it was approximately slower by a
> factor ten than the good, old, "unmanaged" C. We tested with FFT
> algorithms
> and linear convolutions, but I suppose that the same hold
approximately
> for
> any algorithm.
> Why hell are You planning to use C# for DSP ???
> Bye!
>
> Angelo Farina
>
> > -----Original Message-----
> > From: music-dsp-bounces at shoko.calarts.edu
> > [mailto:music-dsp-bounces at shoko.calarts.edu] On Behalf Of Roger
Waters
> > Sent: 27 January 2004 01:52
> > To: music-dsp at shoko.calarts.edu
> > Subject: [music-dsp] C# Interpolation Code
> >
> > I'm new to C# and am looking for a linear or spline
> > interpolation code in C#. Does anybody know of a site where
> > I can view similar code, or would anybody be willing to share
> > some code for me to study?
> >
> > Thank you :)
> >
> > --
> > http://www.fastmail.fm - Choose from over 50 domains or use
> > your own dupswapdrop -- the music-dsp mailing list and website:
> > subscription info, FAQ, source code archive, list archive,
> > book reviews, dsp links http://shoko.calarts.edu/musicdsp
> > http://ceait.calarts.edu/mailman/listinfo/music-dsp
> >
>
>
> dupswapdrop -- the music-dsp mailing list and website:
> subscription info, FAQ, source code archive, list archive, book
reviews,
> dsp links
> http://shoko.calarts.edu/musicdsp
> http://ceait.calarts.edu/mailman/listinfo/music-dsp
--
http://www.fastmail.fm - Does exactly what it says on the tin
dupswapdrop -- the music-dsp mailing list and website:
subscription info, FAQ, source code archive, list archive, book reviews,
dsp links
http://shoko.calarts.edu/musicdsp
http://ceait.calarts.edu/mailman/listinfo/music-dsp
More information about the music-dsp
mailing list