471,122 Members | 1,153 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

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

Do namespace usage cause overhead?

Just wondering, does declaring namespaces in a code file cause overhead in
the system? Are there performance issues with declaring namespaces that are
never used?
Jul 21 '05 #1
4 1083
Peter,
Just wondering, does declaring namespaces in a code file cause overhead in
the system? Are there performance issues with declaring namespaces that are
never used?


No

Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Jul 21 '05 #2
Hello,
This used to be a problem before; but with dotnet, this isn't an issue
anymore.

--
Rami Saad
Microsoft GTSC Developer support for Middle East
"Peter Rilling" <pe***@nospam.rilling.net> wrote in message
news:%2****************@TK2MSFTNGP12.phx.gbl...
Just wondering, does declaring namespaces in a code file cause overhead in
the system? Are there performance issues with declaring namespaces that are never used?

Jul 21 '05 #3
as far as I can tell namespaces are just a method of organising code
to allow for more scope when naming classes and members. there should
be no overhead.

An unused namespace would be like any other unused section of code -
redundant. it just takes up space in the assembly.

Someone with knowledge of IL may be able to tell you more
Posted Via Usenet.com Premium Usenet Newsgroup Services
----------------------------------------------------------
** SPEED ** RETENTION ** COMPLETION ** ANONYMITY **
----------------------------------------------------------
http://www.usenet.com
Jul 21 '05 #4
Rami,
This used to be a problem before;


Really? In what language/platform?

Mattias

--
Mattias Sjögren [MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Jul 21 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

88 posts views Thread by Tim Tyler | last post: by
4 posts views Thread by Hallvard B Furuseth | last post: by
7 posts views Thread by LBT | last post: by
4 posts views Thread by Peter Rilling | last post: by
1 post views Thread by Damien | last post: by
9 posts views Thread by Adam Right | last post: by
reply views Thread by =?Utf-8?B?SkhhbGV5?= | last post: by
8 posts views Thread by jacek.dziedzic | last post: by

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.