Skip to content

Commit 37aa58d

Browse files
Improve performance writing to the datastore by 2×
1 parent 1e26ca9 commit 37aa58d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/CodableDatastore/Persistence/Disk Persistence/Datastore/DatastoreIndexManifest.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ struct DatastoreIndexManifest: Equatable, Identifiable {
2424

2525
/// Pointers to the pageIDs currently in use by the index.
2626
var orderedPageIDs: some Sequence<DatastorePageIdentifier> {
27-
orderedPages.lazy.compactMap { pageInfo -> DatastorePageIdentifier? in
27+
orderedPages.compactMap { pageInfo -> DatastorePageIdentifier? in
2828
if case .removed = pageInfo { return nil }
2929

3030
return pageInfo.id

0 commit comments

Comments
 (0)