paint-brush
Array And Set Operations: What You Need to Knowby@anywhichway
170 reads

Array And Set Operations: What You Need to Know

by Simon Y. Blackwell8mFebruary 28th, 2023
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

I recently took on the task of re-writing several open source JavaScript repositories to take advantage of recent optimizations in the JavaScript v8 engine. Some of these optimization involved using built-in classes like `Map` and `Set` instead of arrays. When working with set operations on arrays, I uncovered a fundamental paradigm shift that provides performance boosts of 1x, 2x or even orders of magnitude.
featured image - Array And Set Operations: What You Need to Know
Simon Y. Blackwell HackerNoon profile picture
Simon Y. Blackwell

Simon Y. Blackwell

@anywhichway

Working in the clouds around Seattle on open source projects. Sailing when it's clear.

L O A D I N G
. . . comments & more!

About Author

Simon Y. Blackwell HackerNoon profile picture
Simon Y. Blackwell@anywhichway
Working in the clouds around Seattle on open source projects. Sailing when it's clear.

TOPICS

THIS ARTICLE WAS FEATURED IN...

Permanent on Arweave
Read on Terminal Reader
Read this story in a terminal
 Terminal
Read this story w/o Javascript
Read this story w/o Javascript
 Lite