forked from elastic/kibana
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Performance][Security Solution][3/4] - Sourcerer performance (elasti…
…c#212482) ## Summary Part 3 of elastic#212173 ### Testing For setup see testing section here: elastic#212173 (comment) Testing this work is a bit more `console.log` related, as the primary aim of many of these changes was to limit the amount of re-renders caused by state changes within many of the sourcerer utils. React is relatively fast at handling many of these re-renders, but considering the widespread usage of `useSourcererDataView` and the top level location of `useInitSourcerer`, it was worth taking care of some low hanging fruit. ### Background The changes in this PR centered around limiting the number of re-renders that were being caused unnecessarily in `useSourcererDataView` and `useInitSourcerer` by identifying some quick wins. Comments regarding the changes can be found in the PR diffs ### Checklist Check the PR satisfies following conditions. Reviewers should verify this PR satisfies this list as well. - [x] [Unit or functional tests](https://www.elastic.co/guide/en/kibana/master/development-tests.html) were updated or added to match the most common scenarios ### Identify risks --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com> (cherry picked from commit 98b5280)
- Loading branch information
1 parent
4776c2c
commit a5354b2
Showing
4 changed files
with
50 additions
and
26 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
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