Closed Philippe-Cholet closed 11 months ago
@phimuemue
I'm sorry you had some hard time reviewing it. I definitely tried and struggled to make more fine-grained commits here. But I should have thought of your very helpful intermediary Loaded(CompleteState) -> LoadedStart, LoadedOngoing
.
I'm a work in progress (especially git), and to improve myself I splitted it again myself, trying to leave the last commit intact (FusedIterator
, but I git-failed so I had to write it again).
You can check that there is no difference between our branches:
https://github.com/Philippe-Cholet/itertools/compare/permutations-states-2..phimuemue:rust-itertools:permutations-states-2 (I've just learnt that ..
and ...
have different meaning in this url).
@phimuemue I'm sorry you had some hard time reviewing it. I definitely tried and struggled to make more fine-grained commits here. But I should have thought of your very helpful intermediary
Loaded(CompleteState) -> LoadedStart, LoadedOngoing
. I'm a work in progress (especially git), and to improve myself I splitted it again myself, trying to leave the last commit intact (FusedIterator
, but I git-failed so I had to write it again).You can check that there is no difference between our branches: https://github.com/Philippe-Cholet/itertools/compare/permutations-states-2..phimuemue:rust-itertools:permutations-states-2 (I've just learnt that
..
and...
have different meaning in this url).
No worries. I hope it didn't come across an offense. Thanks again for taking the time to simplify this.
@phimuemue I did not see any offense, only the opportunity to improve the way I write commits.
Fixes #747
This is quite a rewrite, very little is untouched.
count
andsize_hint
are really simplified with the newPermutationState::size_hint_for
.I did not expect any performance improvement, but nice to have a little one.