BACKGROUND 1.2 KB

12345678910111213141516171819202122232425
  1. BACKGROUND:
  2. I started coding this because I couldn't find a fixed point FFT that didn't
  3. use assembly code. I started with floating point numbers so I could get the
  4. theory straight before working on fixed point issues. In the end, I had a
  5. little bit of code that could be recompiled easily to do ffts with short, float
  6. or double (other types should be easy too).
  7. Once I got my FFT working, I was curious about the speed compared to
  8. a well respected and highly optimized fft library. I don't want to criticize
  9. this great library, so let's call it FFT_BRANDX.
  10. During this process, I learned:
  11. 1. FFT_BRANDX has more than 100K lines of code. The core of kiss_fft is about 500 lines (cpx 1-d).
  12. 2. It took me an embarrassingly long time to get FFT_BRANDX working.
  13. 3. A simple program using FFT_BRANDX is 522KB. A similar program using kiss_fft is 18KB (without optimizing for size).
  14. 4. FFT_BRANDX is roughly twice as fast as KISS FFT in default mode.
  15. It is wonderful that free, highly optimized libraries like FFT_BRANDX exist.
  16. But such libraries carry a huge burden of complexity necessary to extract every
  17. last bit of performance.
  18. Sometimes simpler is better, even if it's not better.
  19. -- Mark Borgerding