Oh snap. Just found a situation where using a for of loop was BLAZINGLY FASTER than using a filter + reduce. Gotta figure out a good way to explain it, because it was just such a huge difference. Like, I'm talking: ~50ms vs ~2 minutes... Or something like that
-
-
Is a Map() object faster for insertion/lookup than a plain object when all keys are just strings? Or is this just about semantics / code clarity / protections against things like the key being malicious like "hasOwnProperty"
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
-
-
Genuine question: care to explain ? Key is a string what are the benefits ?
Thanks. Twitter will use this to make your timeline better. UndoUndo
-
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.