biomimetics/imageproc-lib — pull request #45 by Humhu (2012-07-16 17:10:18+00:00)
Title: Dfilter Static Allocation and Updated Implementation

Changed to use static allocated objects of maximum size instead of dynamic allocation. Since the data structure is relatively small, the gains from avoiding heap fragmentation should outweigh the maximum size overhead.

Also updated the implementation of dfilterApply to use array shifts and fixed indices instead of tracking a head/tail. The code is much cleaner and should be comparable in performance due to better compiler optimization and fewer branches.