Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor
#clean_old_tokens
to reduce computational complexity.
* Previous version featured an `Enumerable#min_by` loop _inside_ a `while` loop, resulting in `O(n^2)` complexity. * Instead, break things into two separate loops, and skip altogether if they aren't even necessary.
- Loading branch information