Files
carbon-lang/toolchain/check
Dana Jansens 64139e5d65 Stop using Map for the cache in InstFingerprinter (#6019)
This takes the debug runtime of
`toolchain/check/testdata/interop/cpp/function/arithmetic_types_bridged.carbon`
from 4.7s down to about 4s (so 15% faster overall).

There's still lots of room to improve this test which seems to be
hitting lots of pathological behaviour, but InstNamer is 30% of the
runtime, with fingerprinting's `InstFingerprinter::GetOrCompute`
consuming 10% of cycles. We reduce its impact by using a vector of
vectors instead of a Map for the cache of fingerprints. After this
change InstNamer drops below 24% of the runtime.

Also move the instruction name when giving it to `AllocateName` since it
receives std::string by value, though this doesn't show up in the
profile for the test.
2025-09-08 16:15:10 +00:00
..
2025-04-11 21:47:43 +00:00
2025-07-11 22:29:10 +00:00
2025-09-06 08:36:10 +00:00
2025-06-12 20:37:27 +00:00
2025-09-02 20:50:49 +00:00
2025-04-14 14:28:15 +00:00
2025-04-14 14:28:15 +00:00
2025-03-01 08:00:17 +00:00