Skip to content

Firestore: Improve efficiency of memory persistence when processing a large number of writes#13572

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 6 commits into from
Sep 4, 2024

Conversation

dconeybe
Copy link
Contributor

@dconeybedconeybe commented Sep 3, 2024

Replace std::vector with std::deque so that erasing the first element does not incur O(n) cost, as when erasing the entire vector this inefficiency results in O(n^2) cost. Googlers see b/364354267 and cl/671065694 for details.

The port to JS and Android is tracked by b/365092047 (only Googlers can see this)

@dconeybedconeybe self-assigned this Sep 3, 2024
Sign up for freeto subscribe to this conversation on GitHub. Already have an account? Sign in.
2 participants
@dconeybe@ehsannas
close