Asp.net| Tips
In order to make the URL address friendlier (there may be other reasons, of course), many sites use URL overrides, such as Http://www.cnblogs.com/life, which typically handle such URL overrides in ASP.net, and must map *.* to aspnet_ in IIS Isapi.dll (C:\WINDOWS\Microsoft.NET\Framework\v1.1.432\aspnet_ Isapi.dll), and then in the web.config for the corresponding configuration, and finally write the appropriate processing procedures, most of the case we are doing, the Bo Ke Garden is done, it seems that there is no problem.
But the Dudu garden has long been a performance problem, and many friends of the garden have also thought a lot of ways to improve performance, achieved no small results, but still not very ideal, I also think of a force, because I like the garden, I learned a lot of things in the garden, is basically early in the evening to see the above article, Until last night a friend of technology group asked me a URL rewrite question, suddenly awakened to the performance of the Bo Ke Park is probably caused by URL rewriting.
My friend's question is this:
Http://www.wodecity.com/food and http://www.wodecity.com/food.html (the link is now defunct) are positioned to the same page through URL rewriting http:// Www.wodecity.com/page/food.aspx, all with the same handler, the only difference is to deal with Http://www.wodecity.com/food so there is no extension address he must map *.* to aspnet_ Isapi.dll, while http://www.wodecity.com/food.html maps *.html to Aspnet_isapi.dll, it turns out that http://www.wodecity.com/ Food.html's performance is 10 to 20 times times better than Http://www.wodecity.com/food, he was tested with LoadRunner, and he was frustrated by the results. I began to feel incredible, *.* and *.html What is the difference between, *.* is the page all the requests, including CSS files and all the picture files are useful for him to write the URL rewrite process to deal with, *.html is not, just a request, the problem appears here, Http://www.wodecity.com/food This page has more than 20 pictures, ask a page to use the URL rewrite process to deal with so many pictures, can not slow? What do we do? Because they want to use http://www.wodecity.com/food such URL, this is more friendly, so still want to use *.*, think for a while later I told him, let your URL rewrite program does not deal with those picture files on the line, how to do? There are two methods: Method 1, convert the folder where the picture resides into a virtual directory, and then move to the *.* map of the virtual directory, so that his URL rewrite program will not process the image file, of course, to store other files that do not require URL rewriting procedures like the image folder to do similar processing, Method 2, Create a new site, such as using http://img.wodecity.com/to store picture files, the principle is the same, is to let your URL rewrite handler does not process those picture files.
All OK, he told me he went to the company to test this morning.
In order to verify my ideas, I also wrote a program to test today, performance is nearly 20 times times the difference, good, my idea is correct.
Perhaps my idea or the test result has the mistake, here welcome PK. Msn:cxbsky#hotmail.com.
Also hope that this article on the performance of the garden to help, because the problem may be the park and my friend's site is very similar.
PS: When I finished writing this article, I asked my friend's test results, he said: "The original can only hold up to 50 people." Now with more than 700 is no problem. ”