Message from JavaScript discussions

May 2017

— Oh shit

— 

Set add: 265.634ms
myset add: 3554.910ms
arrset add: 527.948ms
set has: 220.869ms
myset has: 274.758ms
arrset has: 483.703ms

— What happened there?

— This

— Same surface api, delete needs same overhaul as has just got

— I'm building the index array on has at the same time I'm checking if all chars exist

— Pretty good

— Very nice

— Apart from all the other cruft I ranted about, you can see how seperation helps

— However, delete is expensive if we're also deleting unused characters

— Maybe instead of deleting or splicing, you can simply set the element to undefined or null

— 

if (this.strings[i] === null) {
continue;
}