Reimplement EliasFanoReader::{jump,jumpTo} in terms of {skip, skipTo}
Summary: Since D18140137 `reset()` doesn't perform any data reads, so we can simplify the implementation of the `jump*` functions to just reset the reader in case of a backward jump. The only tricky case we need to handle is when `jumpTo` is called from the middle of a run of identical values. Delegating to `skip*` the additional benefit of inheriting the optimizations for small forward skips. Differential Revision: D18496743 fbshipit-source-id: 73dc8b21534fba90f1ac2a924a7cebc56ffaba94
Showing
Please register or sign in to comment