Overhead in unused code
问题 I am wondering what the overhead is of having unused functions in your code. Say for example you have some debug logging, and you then give most of your objects a ToString() function that is being used in the debug logs. In a release build that debug logging is not being used. Is it then worth it removing the source code of those ToString() functions? (e.g. via Macro?) Or do they just make the executable marginally larger and otherwise don't impact performance? e.g. no speed impact? Or does