Reputation: 41
I'm building a new n-tier web application and I would like to know the performance differences between developing my tiers in one single assembly (each tier with its own namespace) or into different assemblies, one for each tier. Thanks.
Upvotes: 4
Views: 149
Reputation: 51146
Any differences are likely to be negligible. Loading classes will be a hair slower but not by much. (As part of the security model of the CLR, checks are done when execution crosses assembly boundaries.) If it makes sense to develop separate assemblies, do so. You can always refactor and/or recompile into a single assembly in the off chance that you have any performance issues. It's an interesting question, but nothing to worry about upfront for most development scenarios.
Upvotes: 2