Memory of a filter used on real time digital signal processing
If memory is your primary concern then an IIR filter is the way to go.  It uses very little memory and is pretty computationally efficient.

FIR filters' memory length is one less than the number of filter taps.  This usually isn't that much, but it can add up if there are a number of filters and/or they are long.