Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

perf: do not do object.entries

thecodrrfdfd92007429
diff --git a/packages/core/database/cached-collection.js b/packages/core/database/cached-collection.js
index e3d11cd30..f5c24317a 100644
--- a/packages/core/database/cached-collection.js
+++ b/packages/core/database/cached-collection.js
@@ -11,7 +11,7 @@ export default class CachedCollection {
async init() {
await this.indexer.init();
const data = await this.indexer.readMulti(this.indexer.indices);
- this.map = new Map(Object.entries(data));
+ this.map = new Map(data);
}
/**