Performance variation when moving functions between files

36 points ArtisticHamster

I had a function, and to to make a structure more logical, I moved it between files within the same crate. What I noticed, is that performance of some benchmarks got much worse (-30%). Is it normal compiler behavior? Did anyone had anything similar? Does anyone has any tips on how to track down such issues?