09.27.06
ASP.NET Performance Issue When Putting Many Files in the Same Folder
My current project is semi-dynamic. It is actually dynamic, but I created many files in html format, so the search engine can give me better rank. However, after I implemented such system, the performance is unbearable. It took 2-5 mins to open up a page. I did many testing, and found once I opened up a page and waited 2-5 mins, all other pages in the same folder are already cached. This suggested maybe .NET engine compiled all files in the same folder at once, even though I only need one file to be compiled. Therefore, I create a new engine, which stores all these files in thier own folders (only one file per folder). Amazingly, the performance issue is solved in this way. The page opened up in mere seconds instead of minutes.
A good lesson:
Do not put many dynamic files in one folder, or .NET tends to compile everything in the same folder at once.