Slack here
Problem
We have many calls to keysChanged function throughout the session and on an average it will be around ~800 ms. That’s a lot for a function which is called this many times. From the trace, this function is called roughly around 15 times.
Inside of this function we have getCachedCollection , which first calls Array.from on the Set then filter it out and then reduce the returned value.
Solution
We can improve this by doing only 1 loop directly on Set as it gives us forEach.
cc @hurali97
Issue Owner
Current Issue Owner: @
Upwork Automation - Do Not Edit
- Upwork Job URL: https://www.upwork.com/jobs/~0145b3587af847aed1
- Upwork Job ID: 1804230619308310738
- Last Price Increase: 2024-06-21
Issue Owner
Current Issue Owner: @puneetlath