Archief

Dev

Speeding up Orchard: Custom profiler results

To reduce the response time of a page, I implemented a custom profiler in a couple of places in Orchard. Below are a couple of findings.

Slow database queries
Some queries are terribly slow. Some could be sped up by setting database indexes. 

Slow modules
Modules are created by the community. And there’s no way to tell if an author has thought about performance. The AdvancedMenu module for instance, is first in the Module Challenge. But it takes about 100ms to render my menu. That’s 1/3 of the total loading time! And the menu doesn’t change, so it’s perfect for being cached.

Viewengines
Another part where a lot of time goes into is the Viewengine logic. With EngineWrapper, BindDeep or BindShallow. But where the time actually stays is still a mystery for me.