Notes on new performance enhancements in Ivonna 2.1
Saturday, February 06, 2010 7:30:44 AM
Ivonna 2.1 is due this weekend, and while I've been testing the final bits, I noticed a bug which cannot be fixed without changing the overall architecture, so I decided to leave it and be clear about it.
One of the most annoying things about Ivonna was her bad performance on startup. Every time I needed to run a test, the Asp.Net engine cleared the temp folder and recompiled the whole site. It would take up to several minutes, depending on the number of pages. So, in the 2.1 release, I decided to stub the whole thing. The startup time dropped to several seconds, which is sort of acceptable (note that each test itself takes much less time to run).
Everything went fine until I put some code in an App_Code class, and Ivonna couldn't load it. It turned out that no changes in the App_Code folder could be recognized by the test. However, changes in the codebehind are recognized.
The workaround is, whenever you make a change to or create an App_Code class, be sure to delete the temporary site folder, which is usually under the C:\Windows\Microsoft.NET\Framework\v2.0.50727\Temporary ASP.NET Files\root\ folder.