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
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 |
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.
Standard autonav code is one thing, a massive recursive sorting function is another.
You don't have many items in your navs.
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?
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?
I'd suggest you try adding the autonav block and see if there's any performance difference or turn on caching.