-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Performance improvements on element creation #4940
Conversation
Codecov Report
@@ Coverage Diff @@
## master #4940 +/- ##
==========================================
+ Coverage 99.42% 99.42% +<.01%
==========================================
Files 210 210
Lines 5535 5608 +73
Branches 1211 1240 +29
==========================================
+ Hits 5503 5576 +73
Misses 29 29
Partials 3 3
Continue to review full report at Codecov.
|
I don't think it is a small one! The chart looks much cleaner now. |
@erwinheitzman I adjusted both implementations, anything left? |
LGTM |
* don't clone in the loop * PR feedback
Proposed changes
I found this while investigating some performance issues: when we fetch a large amount of elements we run some unnecessary computation within a loop which can be easily refactored. The flame chart changes from:
to:
which is a small but not insignificant win 🎉
Types of changes
Checklist
Further comments
Reviewers: @webdriverio/project-committers