HTML Logo by World Wide Web Consortium (www.w3.org). Click to learn more about our commitment to accessibility and standards.

Moving forward with Composr

ocPortal has been relaunched as Composr CMS, which is now in beta. ocPortal 9 will be superseded by Composr 10.

Head over to compo.sr for our new site, and to our migration roadmap. Existing ocPortal member accounts have been mirrored.


Profile editor is slow

Login / Search

 [ Join | More ]
 Add topic 
Posted
Rating:
#96043 (In Topic #19092)
Avatar

Fan in action

My profile editor takes forever to load. Anyone have any ideas where I should look to speed it up?

Thanks!

~qwolf
Back to the top
 
Posted
Rating:
#96046

Honoured member

Well I'm not Chris or one of the team guys, but if I had to guess I'd say that the profile stuff is probably stored in your MySQL database, and if it is slow loading I'd look to my web host and find out if there's an issue with your MySQL server.  A lot of times if your on a shared server there's an account other than yours really working the database server.  In Fact, I left Arvix because every time  I'd turn around the SQL server was timing out, and they refuse to migrate me to a different server.  You could check that while waiting for one of the more experienced guys around here to chime in.
Back to the top
 
Posted
Rating:
#96048
Avatar

Fan in action

Yes, that is why I left Ipage. I purchased a server and the site is the only site accessing MySql at the moment. Everything else runs fine but the edit profile seriously takes a good 10-30 seconds to load, if not longer. (I got distracted a couple times waiting so not sure how long it took) Also, I tried it in different browsers and its the same speed. 

I admit i'm at a loss on this one.

But thanks for trying.
Back to the top
 
Posted
Rating:
#96051
Avatar

Community saint

Did you check your error logs for any messages?
Back to the top
 
Posted
Rating:
#96052
Avatar

Fan in action

Thanks Duck, I checked my error log and found I'm missing my 404 page. heh heh

But no other errors in there.
Back to the top
 
Posted
Rating:
#96063
Avatar

I will investigate for you if you like, but I'd need FTP access.

Add a new support ticket - ocPortal.com


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#96080
Avatar

Community saint

mrqwolf said

My profile editor takes forever to load. Anyone have any ideas where I should look to speed it up?

Thanks!

~qwolf

Same here, about 10-15 seconds. I never really paid much attention to it as I always thought it was slow due to the amount of data it was loading.

Steve
Back to the top
 
Posted
Rating:
#96090
Avatar

I'm taking a look at this today. This optimisation may make a difference:

Code

--- a/sources/ajax.php
+++ b/sources/ajax.php
@@ -539,8 +539,11 @@ function snippet_script()
 
        if (strpos($out,chr(10))!==false) // Is HTML
        {
-               require_code('xhtml');
-               $out=xhtmlise_html($out,true,true);
+               if ((!function_exists('simplexml_load_string')) || (@simplexml_load_string('<wrap>'.preg_replace('#&\w+;#','',$out).'</wrap>')===false)) // Optimisation-- check first via optimised native PHP function if possible
+               {
+                       require_code('xhtml');
+                       $out=xhtmlise_html($out,true,true);
+               }
        }
 
        // End early execution listening (this means register_shutdown_function will run after connection closed - faster)

Or in English…
In sources/ajax.php change:

Code

               require_code('xhtml');
               $out=xhtmlise_html($out,true,true);
to:

Code

               if ((!function_exists('simplexml_load_string')) || (@simplexml_load_string('<wrap>'.preg_replace('#&\w+;#','',$out).'</wrap>')===false)) // Optimisation-- check first via optimised native PHP function if possible
               {
                       require_code('xhtml');
                       $out=xhtmlise_html($out,true,true);
               }

However I am doing a full profiling of this section of ocPortal and will be putting a few dozen small optimisations into the next patch release. I don't know how successful this will be yet though, I am still at a low level going through it.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
Posted
Rating:
#96096
Avatar

Ok, it is currently loading in about 3 seconds on my machine. I think it was around 4 before, so this is an about 25% gain.

Obviously this is not 10 seconds. If it's a shared server, that would explain the extra slow-down.

If you have addons you don't need, I'd recommend removing them. In particular the notifications editing tab has to load a lot up if all addons are installed.


Become a fan of ocPortal on Facebook or add me as a friend. Add me on on Twitter.
Was I helpful?
  • If not, please let us know how we can do better (please try and propose any bigger ideas in such a way that they are fundable and scalable).
  • If so, please let others know about ocPortal whenever you see the opportunity.
  • If my reply is too Vulcan or expressed too much in business-strategy terms, and not particularly personal, I apologise. As a company & project maintainer, time is very limited to me, so usually when I write a reply I try and make it generic advice to all readers. I'm also naturally a joined-up thinker, so I always express my thoughts in combined business and technical terms. I recognise not everyone likes that, don't let my Vulcan-thinking stop you enjoying ocPortal on fun personal projects.
  • If my response can inspire a community tutorial, that's a great way of giving back to the project as a user.
Back to the top
 
1 guests and 0 members have just viewed this: None
Control functions:

Quick reply   Contract

Your name:
Your message: