473,383 Members | 1,861 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,383 software developers and data experts.

Namespaces and projects

a) Is it best to split up a large application into multiple namespaces and
multiple referenced projects or minimize the splits to all required client
code in one client dll and all required server code in one server dll?

b) To further clarify, performance-wise, is there a penalty to cross
namespace or dll boundaries when all else is equal?

Thanks,
RickN
Nov 15 '05 #1
2 1424
RickN,

I believe that there is a slight penalty (and it is one-time, I
believe), for having code in separate assemblies (it was in a book on IL
that I was reading). However, this penalty is slight, if at all (we are
talking milliseconds here), and doesn't in any way offset the benefits of
the good organization and code reuse that you get from placing your code in
separate assemblies.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"RickN" <ri**@abasoftware.com> wrote in message
news:O8**************@tk2msftngp13.phx.gbl...
a) Is it best to split up a large application into multiple namespaces and
multiple referenced projects or minimize the splits to all required client
code in one client dll and all required server code in one server dll?

b) To further clarify, performance-wise, is there a penalty to cross
namespace or dll boundaries when all else is equal?

Thanks,
RickN

Nov 15 '05 #2
Hi Nicholas,

Don't forget that loading time should be slightly better when project is
split among assemblies (if all assemblies are not required at startup).

--
Miha Markic - RightHand .NET consulting & development
miha at rthand com
www.rhand.com

"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote in
message news:u$**************@TK2MSFTNGP11.phx.gbl...
RickN,

I believe that there is a slight penalty (and it is one-time, I
believe), for having code in separate assemblies (it was in a book on IL
that I was reading). However, this penalty is slight, if at all (we are
talking milliseconds here), and doesn't in any way offset the benefits of
the good organization and code reuse that you get from placing your code in separate assemblies.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"RickN" <ri**@abasoftware.com> wrote in message
news:O8**************@tk2msftngp13.phx.gbl...
a) Is it best to split up a large application into multiple namespaces and multiple referenced projects or minimize the splits to all required client code in one client dll and all required server code in one server dll?

b) To further clarify, performance-wise, is there a penalty to cross
namespace or dll boundaries when all else is equal?

Thanks,
RickN


Nov 15 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

24
by: Marcin Vorbrodt | last post by:
Here is an example of my code: //Header file #include <vector> using std::vector; namespace Revelation { // class definitions, etc... // class members are of type std::vector }
1
by: DKode | last post by:
I have 2 projects in a solution: Web EmployeeManagement The namespace for Web is : CompanyName.Hybrid.Web The namespace for EmployeeManagement is just : CompanyName.Hybrid ...
3
by: Jim Heavey | last post by:
Trying to get the hang of Namespaces. I have primarly developed in VB and am transitioning to C# and the .Net Environment. I have worked a bit with Java as well in school about a year or so ago....
9
by: Patty O'Dors | last post by:
Hi Can somebody please tell me what namespaces are actually for? I notice that when I start a new project in C#, it puts everything in a namespace of the same name as the project. I found them...
1
by: Vincent V | last post by:
Hey i am just starting a new project and from the start i want to make sure my app is as Object Orientated as possible I have a couple of questions in relation to this Question 1: Should i...
11
by: Random | last post by:
I'm confused about the proper use and usefulness of namespaces. I beleive I understand the purpose is so the developer can put classes within namespaces to essentially organize your code. And I...
0
by: m.roello | last post by:
Hi, Anyone can tell me how to define different custom namespaces for xsd datasets in ASP.NET web sites For example, Suppose to have the above folder tree in the App_Code directory App_Code...
2
by: Mr Flibble | last post by:
If you have the namespaces foo.bar.x foo.bar.y foo.bar.z You could put these all in one project called foo.bar or you could create a project for each. I've just realised that I have quite a...
5
by: Simon | last post by:
I have problem with namespaces. I have a program that consumes the web service and has for instance names space nsProgram. In this program I have defined several classes that I use for storing and...
0
by: Barkingmadscot | last post by:
Hi I have setup DFS namespaces (no problem here). I am currently writing software to manage their projects. The DFS is \ \%domainname%\projects\%year%\ProjectNo we have different remote...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.