Open Chuck321123 opened 2 months ago
Just for reference: https://github.com/pola-rs/polars/issues/15480#issuecomment-2129888688
More improvement with branchless filling is possible still but low priority at the moment, as it's rather labour-intensive to write.
did you mean for this to be a future request instead of a feature request?
@deanm0000 My bad for the misspelling. In reality it's an optimization request
Description
So maybe not the highest priority right now, but I would be happy if we got faster backward- and forward_fill() functions as I think there are more optimization potential to these functions. By running this code:
I get these benchmarks:
1.17 s ± 39.9 ms per loop (mean ± std. dev. of 7 runs, 1 loop each)
Obviously, it becomes even slower if you forward and backward fill over groups. Would be nice if someone could find a way to improve these functions.