Please for the fucking love of god stop typing walls of text that are barely related to anything relevant. I've run a fucking marathon keeping up with your moving goal posts, and you've still yet to provide your implementation.
I took someone else's benchmark that you approved of minus one thing, changed that thing to your liking, removed the bugs you missed and focused the timing on the actual task, and now you are saying it's not valid.
But since it's showing the Set approach is faster you have a problem with it. You already said earlier you wrote your own benchmark. So let's see it. It better be running on every fucking runtime and class of machine you know of after your latest bitching.
But of course you won't. Let me to repeat this, forgetting the benchmark you already wrote for a moment, you have still yet to provide even your implementation. That's because you don't have one that's an actual improvement of the image in the original post. It's vapor. You're a blowhard.
There's no way using indexOf inside a loop is going to be faster than using a Set as the array grows past a certain point, he's full of shit. My original point was that maybe using a plain object would be faster than Set, but that would depend on the runtime and how new Set() vs {} is handled - aka an implementation detail
1
u/[deleted] May 15 '21
Please for the fucking love of god stop typing walls of text that are barely related to anything relevant. I've run a fucking marathon keeping up with your moving goal posts, and you've still yet to provide your implementation.
I took someone else's benchmark that you approved of minus one thing, changed that thing to your liking, removed the bugs you missed and focused the timing on the actual task, and now you are saying it's not valid.
But since it's showing the Set approach is faster you have a problem with it. You already said earlier you wrote your own benchmark. So let's see it. It better be running on every fucking runtime and class of machine you know of after your latest bitching.
But of course you won't. Let me to repeat this, forgetting the benchmark you already wrote for a moment, you have still yet to provide even your implementation. That's because you don't have one that's an actual improvement of the image in the original post. It's vapor. You're a blowhard.