-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added facility to register commands that do not need editor update
Summary: An editor update is a costly operation, possibly taking up to 10ms. There are situations where your Lexical command's handler does not need to be inside an update block. A big example is logging. This diff allows command handlers to opt out of the auto-update-wrapper functionality. When applied to logging plugins, this can produce a drastic speedup. Reviewed By: Fetz Differential Revision: D53517219 fbshipit-source-id: ff525cf6010e37d3ed9fdcdc5f1e758a06d0243e
- Loading branch information
1 parent
1a2d0a5
commit de10ddf
Showing
3 changed files
with
21 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters