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
Obtaining an accurate threshold by which I could decide whether I want loop over object with for.in (FastProperties) or with for.keys (DictionaryProperties).
Looping over an object with fast properties is much faster (up to 5x) with for.in than with for.keys. Makes a big difference when you looping over an big object (bellow 1021 length) populated with Object.fromEntries method and even with small regular object (bellow 20 length).
What is the feature you are proposing to solve the problem?
Add hasFastProperties method to node:v8 module. This would avoid the need to expose the entire native syntax.
What is the problem this feature will solve?
Obtaining an accurate threshold by which I could decide whether I want loop over object with
for.in
(FastProperties) or withfor.keys
(DictionaryProperties).Looping over an object with
fast properties
is much faster (up to 5x) withfor.in
than withfor.keys
. Makes a big difference when you looping over an big object (bellow 1021 length) populated withObject.fromEntries
method and even with small regular object (bellow 20 length).What is the feature you are proposing to solve the problem?
Add
hasFastProperties
method tonode:v8
module. This would avoid the need to expose the entire native syntax.What alternatives have you considered?
The text was updated successfully, but these errors were encountered: