dwblaikie wrote: Ah, right - didn't notice it was reading into a set. For argument's sake - could you check the performance with a binary search? See if it's acceptable for your use case. Be nice not to have to build another data structure. https://github.com/llvm/llvm-project/pull/151806