Comment

Comment by curiouscoding

Another remark:

If you benchmark it as something like `for q in queries { contains(q); }`, especially the branchless variants are probably executed in parallel by the CPU, and you are measuring throughput instead of latency. That may or may not be relevant depending on the application.

Discussion

Live from the official Hacker News API

A modern reader for Hacker News · SvelteKit + Skeleton