Tweet
Trying to solve a random access problem for book: need to match a page (say, 100) to a byte offset, ideally without word wrapping pages 1-99 each time. The idea: paginate once; store a lookup table with the location and length of each page in the header. I think this makes sense?
(original)