The overlap-save method is used to filter long input sequences by breaking them into overlapping blocks. Each block overlaps with the previous block by M-1 samples, where M is the length of the impulse response. Circular convolution is performed on each block after zero-padding the impulse response. The first M-1 samples of each filtered block are discarded due to aliasing. The remaining samples are concatenated to form the final output.