Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Speedup OrderIntervalsSource some more (#13937)
Follow-up to #13871, getting another speedup from relatively trivial changes: * avoid redundant `end()` call by directly storing the end value for sub-iterator that we don't use for anything else * also save most `get(...)` calls for this sub-iterator * avoid redundant `start()` call by grabbing `start()` directly from `nextInterval` * replace `getFirst()` with `get(0)`, it looks nice but has needless overhead in my testing (not sure why, but profiling clearly shows it to be slower, maybe just a result of having `get()`'s code hot in the cache with a higher likelihood or something esoteric like that) * avoid using an iterator for loop for a random access list, this is probably the biggest win in this PR
- Loading branch information