File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change
1
+ # Unreleased
2
+ - [ changed] Improve efficiency of memory persistence when processing a large number of writes. (#13572 )
3
+
1
4
# 11.2.0
2
5
- [ fixed] Marked all public classes with only readonly properties as ` Sendable ` to address
3
6
Swift Concurrency Check warning. (#12666 )
Original file line number Diff line number Diff line change 17
17
#ifndef FIRESTORE_CORE_SRC_LOCAL_MEMORY_MUTATION_QUEUE_H_
18
18
#define FIRESTORE_CORE_SRC_LOCAL_MEMORY_MUTATION_QUEUE_H_
19
19
20
+ #include < deque>
20
21
#include < set>
21
22
#include < vector>
22
23
@@ -59,7 +60,7 @@ class MemoryMutationQueue : public MutationQueue {
59
60
void RemoveMutationBatch (const model::MutationBatch& batch) override ;
60
61
61
62
std::vector<model::MutationBatch> AllMutationBatches () override {
62
- return queue_;
63
+ return std::vector<model::MutationBatch>( queue_. begin (), queue_. end ()) ;
63
64
}
64
65
65
66
std::vector<model::MutationBatch> AllMutationBatchesAffectingDocumentKeys (
@@ -128,7 +129,7 @@ class MemoryMutationQueue : public MutationQueue {
128
129
* Once the held write acknowledgements become visible they are removed from
129
130
* the head of the queue along with any tombstones that follow.
130
131
*/
131
- std::vector <model::MutationBatch> queue_;
132
+ std::deque <model::MutationBatch> queue_;
132
133
133
134
/* *
134
135
* The next value to use when assigning sequential IDs to each mutation
You can’t perform that action at this time.
0 commit comments