[clangd] Avoid lexicographic compare when sorting SymbolIDs. NFC
authorSam McCall <sam.mccall@gmail.com>
Wed, 5 Oct 2022 21:00:35 +0000 (23:00 +0200)
committerSam McCall <sam.mccall@gmail.com>
Wed, 5 Oct 2022 21:02:28 +0000 (23:02 +0200)
commit60b4b39f5a78661e2b9d222cf6ba7d9d5d7511ed
tree623f80025f01249f7b60ae4cccb254ce4de5f4e3
parent6bbe7d376e48946ea5450ca4a7d48637ed6a67a4
[clangd] Avoid lexicographic compare when sorting SymbolIDs. NFC

These are 8 bytes and we don't care about the actual ordering, so use
integer compare.

The array generated code has some extra byte swaps (clang), calls memcmp (gcc)
or inlines a big chain of comparisons (MSVC): https://godbolt.org/z/e79r6jM6K
clang-tools-extra/clangd/index/SymbolID.h