Builddisplay very slow

Topics: Customizing Orchard, Writing modules
Jan 30 at 4:55 AM
Hey everyone,

I'm trying to improve the speed of my orchard site.

I have this code:
var contentItemShapes = gefilterd.Select(x => _contentManager.BuildDisplay(x, displayType))
My "gefilterd" list are 12 contentitem, yet the statement takes 3 seconds to complete.

How can i do this differently and make it go fast?

Kind regards,

Apr 5 at 1:59 PM
Anyone has an idea how to improve this? this is making my loading times unacceptable :(
Apr 5 at 2:48 PM
Edited Apr 5 at 2:48 PM
This might indicate an issue with one of your part drivers. The rule of thumb is to put all code within a lambda/anonymous method that is used within the ContentShape returned from driver's Display method so the code won't be executed if not needed.

Can't really tell more without seeing the code.
But in any case - 3 seconds load time is huge. You should debug and profile your custom code first.
Apr 5 at 3:15 PM

Thank you for your answer, you can find the code here: