generated from wechaty/puppet-mock
-
Notifications
You must be signed in to change notification settings - Fork 93
Closed
Description
In our code, we are using FlashStoreSync
:
the FlashStoreSync
will provide a sync API with the cost of ... load all data in memory, which is not very efficient for memory usage.
I'd like to suggest that we should replace the FlashStoreSync
with the FlashStore
and using its async API. (with the latest version, with LevelDB backend).
Best practice
The wechaty-puppet-service
module can shows the best practice for using FlashStore:
https://github.com/wechaty/wechaty-puppet-service/blob/main/src/client/payload-store.ts
Metadata
Metadata
Assignees
Labels
No labels