Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[IMP] beesdoo_shift_swap: Improve legibility, again
The idea here is to slowly empty one set, and fill the other set. This is fairly intuitive, and uses efficient set operations. It is certainly more intuitive than emptying the `changes` list every time, and slowly refilling it over every iteration with unprocessed records. The only unintuitive (and inefficient) step is the sorting. I would use an OrderedSet here, but no such class exists in Python. Signed-off-by: Carmen Bianca BAKKER <[email protected]>
- Loading branch information