Closed Xion closed 7 years ago
When looking for a GitHub gist, the entire list of gists for a user is looked through. This makes more HTTP requests to GitHub API than necessary.
Turn list_gists function into an Iterator which dispenses gists semi-lazily, only talking to the API when strictly necessary.
list_gists
Iterator
Fixed.
When looking for a GitHub gist, the entire list of gists for a user is looked through. This makes more HTTP requests to GitHub API than necessary.
Turn
list_gists
function into anIterator
which dispenses gists semi-lazily, only talking to the API when strictly necessary.