Skip to content

perf: replace spread with concat where useful#2446

Merged
markov00 merged 3 commits intoelastic:mainfrom
markov00:2024_05_30-speed_up_computation
Jun 10, 2024
Merged

perf: replace spread with concat where useful#2446
markov00 merged 3 commits intoelastic:mainfrom
markov00:2024_05_30-speed_up_computation

Conversation

@markov00
Copy link
Copy Markdown
Collaborator

Summary

Replacing existing object/array spread with concat where the number of object could be high

@markov00 markov00 added the :performance Performance related issues label May 30, 2024
Copy link
Copy Markdown
Collaborator

@nickofthyme nickofthyme left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice changes, I looked for an eslint rule to enforce these changes but nothing available 😢.

@markov00 markov00 marked this pull request as ready for review June 6, 2024 07:02
@markov00 markov00 merged commit 078b490 into elastic:main Jun 10, 2024
nickofthyme pushed a commit that referenced this pull request Jun 10, 2024
# [66.0.0](v65.2.0...v66.0.0) (2024-06-10)

### Features

* **Metric:** style enhancements ([#2437](#2437)) ([0686596](0686596))

### Performance Improvements

* replace spread with concat where useful ([#2446](#2446)) ([078b490](078b490))

### BREAKING CHANGES

* **Metric:** The `MetricStyle.text.darkColor` and `MetricStyle.text.lightColor` are now `MetricStyle.textDarkColor` and `MetricStyle.textLightColor`, respectively. This PR also includes minor overall style changes to the text breakpoints of the `Metric` chart.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

:performance Performance related issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants