问个问题  .net 网站 直接部署源文件不把cs文件编译成dll的方式 和 编译后发布性能差距有多大?首次访问就不算了

解决方案 »

  1.   

    如果不算上第一次的预编译时间差,应该没什么差别,因为后续的访问都是访问加载到内存中的DLL
      

  2.   

    不把类库编译成DLL 每次访问都要编译 速度肯定会有差距。。还是编译
      

  3.   

    不会每次访问都编译吧,应该只是第一次使用的时候编译。ASP.NET automatically compiles your application code and any dependent resources the first time a user requests a resource from the Web site. In general, ASP.NET creates an assembly for each application directory (such as App_Code) and one for the main directory. (If files in a directory are in different programming languages, then separate assemblies will be created for each language.) You can specify which directories are compiled into single assemblies in the Compilation section of the Web.config file.来自:http://msdn.microsoft.com/en-us/library/ms178466(v=VS.90).aspx