Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
perf: cache the lookahead for future use
This commit does two things: 1. It speeds up repeated calls to `Listing.empty()` and calls to `Listing.each()` after a call to `Listing.empty()` 2. It fixes a potential out-of-memory issue when calling `empty()`. Previously it would recursivly call `empty()` on the next fetched page which could, in theory, result in another fetch.
- Loading branch information