Reuse inst fingerprinter across multiple manglings

Author: zygoloidCreated Sep 4, 2026Updated Sep 6, 2026
Labelstoolchain

Description of the bug:

For each symbol we lower, we create a new SemIR::Mangler, which creates a new InstFingeprinter, which means we don't cache any fingerprint computations across manglings. This could in principle add up to a lot of repeated work. We should cache a single SemIR::Mangler in the FileContext to share a fingerprint cache.

What did you do, or what's a simple way to reproduce the bug?

No response

What did you expect to happen?

No response

What actually happened?

No response

Any other information, logs, or outputs that you want to share?

No response

Source: carbon-language/carbon-lang