Or more likely, no one had time to look. I keep see people acting like not fixing something is because the devs don't care. More often than not it's because we're being told to do something else instead.
"I don't have time to do it myself" is probably a very common reason why consultants are hired.
Or maybe this was a case of a rare low-hanging fruit lying around for someone to find. Maybe the entire software industry is not one giant low hanging fruit waiting for the right genius to emerge and pick.
And yes, there are many code bases where performance isn't prioritized in all areas, and one totally can expect a skilled engineer coming in to look at performance to find nice speed increases here and there. Not because they are magically better than everyone else, but because a) they are given the freedom to spend time on it where nobody else has been and b) because they are possibly more familiar with approaches and tooling than a dev that hasn't had the opportunity to prioritize performance. All your examples likely do have such people available, and thus bringing someone in is less likely to find something really juicy, unless they have some blindspot. Large game projects for sure have performance experts, but maybe they primarily spend their time on in-game performance and initial resource loading was a blind spot. Maybe that's a common blind spot. And outside games that's commonly waaay worse - performance isn't prioritized, and to be fair the fact that slower-than-necessary software usually sells just as well makes that understandable economically for a long time. But also makes it difficult if it gets to the point where it should/must matter.
In my experience, YES! It is often the new set of eyes (especially if they are on a a smart head with lots of time, energy and will available) that finds new solutions, optimizations and bugs we never thought about. And the people I work with are the smartest people I have ever met and that still is nowhere near enough to ensure that the large scale software projects we work on have had all the possible large optimizations done already.
> Does your game take forever to start? Your lazy devs say there's nothing to be done about it? Just give us a call! As seen on hackernews.