mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-15 20:48:01 +08:00
118761d79e
Summary: We send database `trigger()` events through the ActionBrige to all windows of the app. This means that during initial sync, we're serializing, IPCing and unserializing thousands of models a minute x "N" windows. This diff converts the payload of the trigger method into an actual class that implements a custom toJSON. It converts the impacted `objects` into a string, and doesn't deserialize them until it's asked. Bottom line: this means that in many scenarios, we can avoid creating Contact models, etc. in composer windows only to broadcast them and then gc them. Test Plan: No new tests yet, but this should definitel be tested. #willfix. Reviewers: juan, evan Reviewed By: evan Differential Revision: https://phab.nylas.com/D2236 |
||
---|---|---|
.. | ||
account-store-spec.coffee | ||
contact-store-spec.coffee | ||
database-setup-query-builder-spec.coffee | ||
database-store-spec.coffee | ||
draft-store-proxy-spec.coffee | ||
draft-store-spec.coffee | ||
file-download-store-spec.coffee | ||
file-upload-store-spec.coffee | ||
focused-contacts-store-spec.coffee | ||
focused-content-store-spec.coffee | ||
focused-mail-view-store-spec.coffee | ||
message-store-spec.coffee | ||
task-queue-spec.coffee | ||
unread-count-store-spec.coffee |