.Net Architecture

  • Thread starter Thread starter Aaron
  • Start date Start date
A

Aaron

is it faster, performance-wise to use as fewer
libraries/namescape(?not sure wht they are called. ie using System.IO)
as possible?

i wrote a program that has about 3000 lines of code, and there's only
one function that needs to do some xml-like string manipulation. It'd
be easiest to use one of the functions from the System.Xml namescape,
but I don't how that will affect my program's performance and size. or
i can write a function with regex, takes a lot more work.

Thanks in advance
Aaron
 
the nature in which .Net consumes dll's means that the actual dll that houses the namespace isn't compiled into memory until it's actually called. so, you could throw as many namespaces into a code file that you want, however none of them will get used until they are called. a reference to System.Xml is added automatically to each type of project, you will just need to add a reference to System.Xml at the top of the code file. for more information about this, search on "Just in time compilation" on msdn

ht
jayson
 
Back
Top