forked from Pissandshittium/pissandshittium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Courgette] PagedArray: Add Iterators and Parametrize Page Size as in…
…t Template. This is a refactoring CL to enable PagedArray usage by libdivsufsort. In addition to overloading operator[], for more general usage we need need pointer-like accessors to PagedArray. To this end we implement PagedArray_const_iterator and PagedArray_const_iterator, which merely wraps a PagedArray pointer along with an index. We also add various operators needed by libdivsufsort. For optimization, '<' and '<=' operators omits pointer checks. By default PagedArray page size is 2**18 elements (1 MiB for int32_t). To enable better testing, we made (log) page size a tepmlate parameter. BUG=608885 Review-Url: https://codereview.chromium.org/2008553007 Cr-Commit-Position: refs/heads/master@{#397311}
- Loading branch information
1 parent
cd2c298
commit 804ed8a
Showing
2 changed files
with
386 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.