A dense price ladder keeps the price levels of a book in an array indexed by the distance in ticks from a base price, one slot per tick whether or not a level exists there, covering a window around the touch; levels outside the window live in a sparse structure, and the window is moved (recentred) when the touch approaches its edge.
bench_books.py.