Writing fast modern x86 assembly is often way easier than for most any other CPU because instruction ordering generally doesn't matter much as a result of OOE (outside of Atom, at least). This basically lets you BS together a function without thinking too hard about anything other than the individual instructions.
It's trivial to beat the performance of typical C code by a factor of 10-20 in many situations, particularly in the case of DSP functions, as per the topic.
Some typical cases (measured in cycles):
8x8 iDCT, 16-bit input to 8-bit output:
add8x8_idct8_c: 779
add8x8_idct8_sse2: 56
6-tap interpolation filter, 8-bit input, 16-bit intermediate, 8-bit output:
hpel_filter_c: 13093
hpel_filter_ssse3: 1770
Bilinear downscaling filter, 8-bit input, 8-bit output:
lowres_init_c: 16308
lowres_init_ssse3: 672
4 SAD comparison operations on 16x16 8-bit pixel blocks, unaligned input:
sad_x4_16x16_c: 1873
sad_x4_16x16_sse2: 95
Variance on 16x16 block, 8-bit input:
var_16x16_c: 536
var_16x16_sse2: 59Rick James, now at Yahoo, was the king of assembly. He wrote a character move library that was faster than the character move hardware, $100K add-on. He kept getting poached from my projects, because, even at CDC, there weren't many as good as he was.
Then there is the productivity issue. The HLC programmer can produce 10x the number of instructions more than the assembly programmer.
But anyone who programmed CDC supercomputers gets some serious geek points for that.
To make a programming analogy, a DSP is like a domain specific language. It is more efficient and easier to use when used in that domain.
A smart compiler can remember and apply a number of optimizations far greater than I would be able to remember. The weirder the processor, the better. A really smart development tool could even benchmark variations to find the best one.
My 6502 assembly code was much better than what the Aztec C compiler could spit, but the 6502 was a sweet processor to program. DSPs (as GPUs, BTW) are anything but sweet.
And, BTW, I wouldn't try to hand tune assembly code with a modern x86 even if my life depended on it.