Reputation: 183
Is it better to merge all your code into one dll
file or is it better to create separate projects for each namespace, for instance? I don't think it'd harm code's readability in any way as the code is separated in namespaces.
My question is:
How does the size of a library harm performance?
Upvotes: 2
Views: 214
Reputation: 4991
It depends but generally it will affect your application at the initial load. In scenarios where you have dependency injection, the DLL loading will take longer as the dependency injection tool has to do a bit of work to figure things out.
In regard to explicit dependencies where your application directly references another project or component, performance is hurt on application load but shouldn't affect performance otherwise by its presence. All this of course doesn't account for what's actually in the DLLs as whatever work they do and their size will also increase load time.
There is also the possibility that your application has plug-ins which will decrease performance when they're loaded. When that happens is up to you application however.
Upvotes: 1