Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Very slow launch time with XULRunner caused by profiles

I have an application that generates temporary XULRunner apps by building a skeleton application folder structure, and then launching it with:

xulrunner -app /path/to/temporary/application.ini

This all works, but it takes an unacceptable amount of time for the application to actually load. I have isolated the time-sink to xulrunner generating/working with profile information.

I have tried adding -profile /path/to/static/folder and -profile /path/to/temporary/folder but each still has a very long delay (30 - 60 seconds, on a fast computer). I have also added -no-remote but with no effect.

When the application launches, I can watch the profile folder slowly fill with files, and once all the files are there, the gui comes up fairly quickly. Unfortunately this time does not seem to disappear when using a static folder for the profiles (it might be regenerating some of the files?).

So my question is, is it possible to completely disable xulrunner's profile management? Is there anything else I could do to increase the loading speed?

like image 570
Eric Strom Avatar asked May 25 '11 20:05

Eric Strom


1 Answers

The location of the profile can slow it down if it's in a subdirectory of the /roaming path in Windows. Check whether the XULRunner profile and cache data are in a local directory or on a network.

A mozillazine article discusses how to find and modify this setting, and the Profile Manager provides utilities to create and delete profiles.

like image 181
Paul Sweatte Avatar answered Oct 20 '22 21:10

Paul Sweatte