You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Performance improvement suggestion for mergeConfig function #5606
Is your feature request related to a problem? Please describe.
The current implementation of the mergeConfig function in axios does not remove duplicate keys when merging two configuration objects. This can result in unnecessary performance overhead when iterating over duplicated keys.
Describe the solution you'd like
I have submitted a #5605.
To address this issue, I suggest adding a step to remove duplicates from the list of keys before iterating over them. One way to achieve this is by using the uniqueArray helper function provided below:
By applying this optimization, we can improve the efficiency of mergeConfig without affecting its functionality or compatibility.
Thank you for considering my suggestion!
Activity