Asp.net-web project is running slowly-ajaxmin

Source: Internet
Author: User

ajaxmin 4.8 version is no problem, when the problem occurs is ajaxmin 5.3. XXXXX version, at first I didn't know it was ajaxmin. I always thought it was because I drastically modified the Web project schema, And the sequelae of a large amount of reflection.

I remember when I was not satisfied with the running speed of my existing Web project, I wanted to make it faster, and the existing Web project architecture was a mess, not easy to extend and maintain later, so I applied to the leader for a certain amount of time to modify the Web project schema.

After the batch, I started to modify the Web project schema, from DBHelper, to follow the principle of compatibility, added a number of reflection methods, used to encapsulate the entity class, and fill the generic collection IList, which is the Persistence durable layer optimization section.

As for the Web presentation layer, using combres+dotless+yuicompressor.net+ajaxmin, for CSS code merge compression +js code merge compression, reduce the size of CSS file and JS file size, and reduce the number of requests for HTTP.

After the entire Web project has been processed, run up to discover that the access speed of the tortoise is slow ... Always thought I wrote the code has a problem, a variety of debugging without fruit.

Open Visual Studio Analytics-Performance and Diagnostics interface , analyze Web projects, run analysis, find a class in a namespace called Microsoft.Ajax.Utilities , run the slowest, And Microsoft.Ajax.Utilities is inside the AjaxMin.dll.

I didn't think about it. Upgrade Ajaxmin version, has been very tangled, until some time with NuGet upgrade other DLL files, incidentally upgrade Ajaxmin to 5.9 version, suddenly found that the speed is much faster, great.

At this point, this article is written here, as a case, to provide the use of ajaxmin partners to make a reference to it.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.