2022 Developer Survey is open! Take survey.
3 votes

Performance hit after non-functional refactoring

You didn't say what percentage in performance change. And whether it is for a tight benchmark or as part of an application. You might see a function getting ten times slower - from 1 nanosecond to 10 ...
user avatar
  • 37.4k
2 votes

Performance hit after non-functional refactoring

It's certainly plausible that moving definitions to a new translation unit has meant the optimiser couldn't do as well. You can #include whatever files you like, so you can re-create the old structure ...
user avatar
  • 9,784

Only top scored, non community-wiki answers of a minimum length are eligible