Re: Splitting the dll..

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance

From: Teemu Keiski (joteke_at_aspalliance.com)
Date: 09/03/04


Date: Fri, 3 Sep 2004 13:38:18 +0300

Hi,

you could have multifile assemblies if you use command-line compilers (see
docs for "multifile assemblies") but the benefits aren't in performance
because assemblies are always preloaded and code JITed and cached before
execution.

According to docs:
==============
There are several reasons you might want to create a multifile assembly:

To combine modules written in different languages. This is the most common
reason for creating a multifile assembly.

To optimize downloading an application by putting seldom-used types in a
module that is downloaded only when needed.
Note If you are creating applications that will be downloaded using the
<object> tag with Microsoft Internet Explorer, it is important that you
create multifile assemblies. In this scenario, you create a file separate
from your code modules that contains only the assembly manifest. Internet
Explorer downloads the assembly manifest first, and then creates worker
threads to download any additional modules or assemblies required. While the
file containing the assembly manifest is being downloaded, Internet Explorer
will be unresponsive to user input. The smaller the file containing the
assembly manifest, the less time Internet Explorer will be unresponsive.

To combine code modules written by several developers. Although each
developer can compile each code module into an assembly, this can force some
types to be exposed publicly that are not exposed if all modules are put
into a multifile assembly.

-- 
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist
http://blogs.aspadvice.com/joteke
"Nelson Smith" <NelsonS@hotmail.com> wrote in message
news:%23evVgZXkEHA.3852@tk2msftngp13.phx.gbl...
> I have created a web based application using .net frame work 1.1. It has
> several modules (I mean screens). Some of the screens are used by shipping
> department; some of them are used by purchase department.  When I build
the
> application it is creating one dll of very high size.
>
> When I compile is it possible to create different dlls for each module.
Will
> it be an advantage? Will it help in the performance of the application?
>
> Thanks,
>
> Nelson
>
>


Relevant Pages

  • RE: Multifile Assembly
    ... > To optimize downloading an application by putting ... >create multifile assemblies. ... >Explorer downloads the assembly manifest first, ... >threads to download any additional modules or assemblies ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Loaded module list.
    ... ".NET Framework Developer's Guide, Multifile Assemblies" ... I'd like to get the list of loaded modules by my assembly, ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: asp.net assembly best practices question...
    ... > user control assemblies. ... > |> Thanks for your response Jojobar, ... you can find that the image or other resource files in the asp.net ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: Carrying Libraries on Your Back...
    ... > Why not build on an installed based of assemblies, ... > than porting libraries around, ... download source code ... compile local source against header files ...
    (microsoft.public.dotnet.languages.vb)
  • Re: general strong name question
    ... You have a project that compiles to a dll. ... Each time you recompile this assembly, and attempt to run the other apps, ... When you compile an assembly, ... assemblies) into the config files of the applications that use the ...
    (microsoft.public.dotnet.general)