Massive performance issue

Permalink Browser Info Environment
The controller function getNavigationArray is causing huge loading times for my site. over 10 seconds until first byte.

I had a look inside here and saw comments like

// End Joshua's Huge Recursive Sorting Crap

Doesnt really fill me with confidence, surely there is a more efficient way of doing this!?

Ben

Type: Discussion
Status: New
balloondog
View Replies:
jb1 replied on at Permalink Reply
jb1
If you have a performance issue it's notthe mega menu causing it. Much of the code including the portion you mentioned are from the core autonav block. I've got 7 menus on my demo page on c5extras.com and it loads super fast.

I'd suggest you try adding the autonav block and see if there's any performance difference or turn on caching.
balloondog replied on at Permalink Reply
balloondog
Trust me, it is that function. Take that out and all is well.

Standard autonav code is one thing, a massive recursive sorting function is another.

You don't have many items in your navs.
jb1 replied on at Permalink Reply
jb1
This package has been used on hundreds and hundreds of websites and no one else has mentioned any performance issues. The recursive function from the Autonav block would have been used on hundreds of thousands of sites, and with no complaints in the forums about that. That recursive function in Autonav has been exactly the same for as long as I've used C5.

If you take it out and it works fine, then leave it like that. The only possible way you could have performance issues is if you're showing hundred of pages in the mega menu, which would just go against common sense anyway.

A few questions that will help to get a resolution for you:
* What version of C5 are you running?
* Do you have caching turned on?
* What type of server are you using (Linux/Windows)?
* Who is your hosting provider?

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.