Strangely, the execution cost of a function `x()` seems to sometimes increase with contract size (ie adding code to unrelated parts of the contract). To be clear, when adding the extra code to the contract, it does not affect the `x()` function. Is this supposed to happen? Why does it happen?

Unfortunately, I noticed this some time ago and don't have an example. I've seen [others](https://ethereum.stackexchange.com/questions/25318/is-there-a-gas-penalty-for-using-too-many-asserts-in-a-contract?rq=1) ask about it too.