Optimizing application performance is a key element for business. There are several ways by which we can optimize the applications performance. It can be done either by server side code optimization, caching or some client side optimization. In this post I am going to discuss about one handy and smart way to optimize web applications performance using Bundling and Minification features which is introduced with ASP.NET 4.5 Developer Preview. ASP.NET 4.5 Developer Preview introduced bundling, which combines multiple JavaScript files for faster loading with less number of requests for download and minification, which reduces the size of JavaScript and CSS files by removing unneeded characters . Combination of these bundling and minification helps web pages to load very faster.



Asp.net 4.5 new features
Asp.net 4.5 Page Inspector Metrostyle apps in VS11 Async

• ASP.NET 4.5 Developer Preview supports Asynchronous programming in reading and writing HTTP requests and responses without the help of the OS threads.
• ASP.NET 4.5 Developer Preview provides ways to read invalidated request data so that you can allow users to pass markup for selected fields or pages.
• Asp.net 4.5 support for support for web socket protocols.
• ASP.NET 4.5 Developer Preview uses bundling and minification of client scripts
• Asp.net 4.5 support for the two new keywords await and async.
• Asp.net 4.5 supports two-way data-binding expressions in Web Forms data controls.
• Asp.net 4,.5 supports New syntax lets you encode HTML output in page markup
• Asp.net 4.5 supports for HTML5 form types
• Improved paging in the GridView control


3. http://geekswithblogs.net/DarrenFieldhouse/archive/2011/10/07/new-features-in-vb.net-11-.net-4.5.aspx

New features in VB.NET 11 (.NET 4.5)

Unlike the release of VB.NET with .NET 4.0, the next release of VB.NET doesn’t have the anything like as many new features, which is almost certainly because the language is really maturing and a lot more parity has been achieved between C# and VB.NET.

The big new feature for both languages is the introduction of the await/async keywords. I won’t go into detail here because they are covered in lots of other places (including the VB.NET team blog).

One if the freebees we get because of the Async feature is the Yield keyword. This has been a feature of C# for a long time, and although not massively useful, when you do need it, it can save you a lot of time. Let look at an example.

Imagine you have a function that takes an array of integers and returns an IEnumerable(Of Integer) containing the even numbers in that array (I know – completely contrived demo). The easiest way to do it would be to build a list and then return it once it is complete, for example:

Function GetEvens(numbers As Integer()) As IEnumberable(Of Integer)
Dim evenNumbers As New List(Of Integer)

For Each number in numbers
If number Mod 2 = 0 Then
End If

Return evenNumbers
End Function

With the Yield keyword we no longer need the List to hold the results, we can return them (yield them) as we find them, making our function look like this:

Function GetEvens(numbers As Integer()) As IEnumberable(Of Integer)
For Each number in numbers
If number Mod 2 = 0 Then
Yield number
End If
End Function

The Global keyword has existed for a while to allow you to be explicit about which namespace you want. For example, assume you have this namespace in your project:

Namespace Acme.System.IO

If you have Imported the Acme namespace this line becomes ambiguous:

Dim dataFile As System.IO.File
The global keyword allows us to be explicit:

Dim dataFile As Global.System.IO.File

In the next version of VB.NET we will also be able to use the Global keyword in namespace declarations (for exactly the same purpose). Kind of minor, but useful when you need it.


About ambatisreedhar


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s