On Monday, 23 May 2016 at 14:47:22 UTC, qznc wrote:
I see three options:

1. Remove dead bookkeeping code
2. Implement back() and popBack()
3. Use alternative splitter implementation (and implement back() and popBack())

The third one would be the best, if it is really faster.

If the performance is really a problem (I think it's a micro optimization at best), then the best option is not to violate DRY. Have a template parameter, std.typecons.Flag, to turn off the back and popBack. Don't have two functions that are 95% the same code like filter and filterBidirectional.

Reply via email to