A question was asked about whether namespace and folder structure would affect performance of an assembly in C#. The answers were very useful, but where specific to C# and the CLR.
How will the namespace and folder structure affect the performance of an assembly if it is written in C++ with gcc? What’s the situation on other OSes, such as Linux or Mac OS?
If there are any significant performance issues, what should I do or avoid doing to maximize performance?
Neither your directory hierarchy nor namespaces will affect your compiled code. The code your compiler will generate will be the same. This goes for all compilers and all OS’s.