fix(auth): Speed up the PageIterator by evaluating items once per page by davidwtbuxton · Pull Request #572 · firebase/firebase-admin-python
hiranya911
changed the title
Speed up the PageIterator by evaluating items once per page
fix(auth): Speed up the PageIterator by evaluating items once per page
The `firebase_admin.auth.list_users().iterate_all()` method uses a sub-class of PageIterator, which happens to access the .items computed property more than once for every page of results. This has been changed so we take care not to access the `self.items` property more than once per page. This is a lot faster.
This file contains hidden or 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