I've been reading through the Contributing Code section of the .NET Compiler Platform ("Roslyn"), and I came across the guidelines for coding conventions. I understand most of the coding conventions and why they would ask for it. But I don't understand what they mean by this:
Avoid allocations in compiler hot paths:
Avoid LINQ.
Avoid using foreach over collections that do not have a struct enumerator.
What is a "compiler hot path"? And why should I avoid using LINQ and avoid doing a foreach over collections that do not have a struct enumerator?