百忙之中发现微软的VS 2008 Sp1 beta 中给了我很多惊喜,最大的是它帮我们解决了一个目前很头痛的一个问题,那就是Smart Client在性能不是很好的机器上运行效率较差的问题,本次Sp1中引入了Client Profile的概念。
Improvements for Client Development
.NET 3.5 SP1 and VS 2008 SP1 contain major performance, deployment, and feature improvements for building client applications. Tim Sneath has a great blog post that talks about some of the client improvements here. Below are more details on them:
Application Startup and Working Set Performance Improvements
.NET 3.5 SP1 includes significant performance improvements to the CLR that enable much faster application startup times - in particular with "cold start" scenarios (where no .NET application is already running). Much of these gains were achieved by changing the layout of blocks within CLR NGEN images, and by significantly optimizing disk IO access patterns. We also made some nice optimizations to our JIT code generator that allow much better inlining of methods that utilize structs.
We are today measuring up to 40% faster application startup improvements for large .NET client applications with SP1 installed. These optimizations also have the nice side-effect of improving ASP.NET application request per second throughput by up to 10% in some cases.
New .NET Framework Client Profile Setup Package
.NET 3.5 SP1 introduces a new setup package option for developers building .NET client applications called the ".NET Framework Client Profile". This provides a new setup installer that enables a smaller, faster, and simpler installation experience for .NET client applications on machines that do not already have the .NET Framework installed.
“.NET Framework 3.5 Optimized Client Runtime
.NET Framework 3.5 SP1 provides an install version of the .NET Framework optimized for client development. The expected final size of this optimized runtime is less than 20 MB.”
同时Routing Engine也是在项目中比较实用的Lib,在这之前我们自己(Beauli)还开发了一套截获Uri请求Mapping到函数参数的Lib,看来有机会可以直接用微软的了。
“.NET 3.5 SP1 includes a flexible new URL routing engine that allows you to map incoming URLs to route handlers. It includes support for both parsing parameters from clean URLs (for example: /Products/Browse/Beverages), as well as support to dynamically calculate and generate new URLs from route registrations.”
由于我们项目使用了Extjs,很高兴看到微软也强力支持Web2.0的开发模式,增加了对复杂JS Lib的Code Intellisense。
Better Visual Studio Javascript Intellisense for Multiple Javascript/AJAX Frameworks
VS 2008 includes Javascript Intellisense support in source view. The intellisense support with the initial VS 2008 release works well with vanilla JavaScript as well as code written using the ASP.NET AJAX JavaScript type patterns. JavaScript is a very flexible language, though, and many JavaScript libraries use this flexibility to full advantage to implement their features - sometimes in ways that prevented the intellisense engine from providing completion support.
VS 2008 SP1 adds much better intellisense support for popular Javascript libraries (we specifically did work to support JQuery, Prototype, Scriptaculous, ExtJS, and other popular libraries). You will get better default intellisense when you reference these libraries. We are also looking at whether we can maintain additional intellisense hint files that you can download to get even better intellisense and documentation support for some of the more popular libraries.
Article
Downloads
Documents
http://vs2008sp1docs.msdn.microsoft.com/en-us/default.aspx
Offline Install
VS Sp1 Full download VS90sp1-KB945140-ENU.exe /createlayout c:\download