Closed tidwall closed 8 years ago
Hey, just saw this as it was closed. I've been on an extended vacation June-August, so this must have come in right as I was leaving. Appologies for the delay, but if it's something you'd still like to do, let me know.
Sure, that would be great. Thanks!
Ping this once the above changes (benchmarks, coment changes on reverse ranges) are in place, and I think we should be good to go.
Sounds good. Thanks.
Ping
I made the changes a few weeks back, but forgot to ping like you asked. Sorry.
Merged, thanks!
Added
DescendRange
,DescendLessOrEqual
,DescendGreaterThan
, andDescend
functions. These are modeled after the existingAscend..
methods.Also modified the iteration function to remove the
from()
andto()
in favor of adding astart
andstop
parameters instead. There is a modest performance ~10% boost by avoiding superfluous function calls.before:
after:
The benchmark code is not included in the source, but I did create a gist at iteration_test.go
I hope you find this update useful and thanks a ton for such a fantastic library!