Aeolun 10 days ago

> an includes check on a large list in a dynamic language such as JS performs abysmally

Does it perform any better in statically compiled languages?

1
ffsm8 9 days ago

Depends on the implementation. E.g. Javas HashSets include has the same performance profile as a Map lookup. Its still not particularly performant with large datasets, but significantly less abysmal then a regular JS .includes().

I just didn't want to explore the example to such a depth, as it felt irrelevant to me at the time of writing.