in some cases, having a parameter called `max_length` can speed things up. the idea is to use just the last \ values of the series.