I have a page with updates on Ajax. Now I have noticed that during normal opening page 220 milliseconds needed. If you click a component (ListBox) then will be updated over Ajax, now takes this process 410 milliseconds.
Now I have found that Persident-> serialize more then twice as often is called (180 in comparison to the normal opening of the page with 60 calls).
Apparently, so called the function serializeChildren within ajaxProcess (forms.inc.php) and VCLShutdown. So many properties are serialized twice.
I have now change the call in VCL Shutdown only called when no Ajax. So far, I have no problem with that.
My changes (forms.inc.php -> VCLShutdown):
if ( !array_key_exists("xajax", $_REQUEST ) )
$application->serializeChildren();
With this change I could the needed time reduce from 410 to 300 milliseconds (113 calls). However, this is still longer than a normal Open. Perhaps there is a better solution or I'm doing something wrong ?