Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Electron app from dvd poor loading performance

We just finished building an electron application with node and react. The application is running smooth on every platform and we are pretty happy of the result. Now we received the request to distribute a version of that app on dvd (meaning that we need to run the application directly from the disc without installing it on the local drive) so we just burn it and tried to launch it. The app is working fine but the problem is the loading time as it takes almost 2 minutes to have the app running without any feedback to the end user. This is caused by the overhead for loading a large number of files which is very slow from the optical drive. So we need some ideas to speed up things or at least to have something to show to the user during the loading time. This could be a launcher application with a splash screen but it must run on mac, win and linux. We thought at QT, but we'd like something less complicated..

Any ideas are welcome

like image 553
Alessandro Loziobiz Bisi Avatar asked Mar 26 '16 17:03

Alessandro Loziobiz Bisi


1 Answers

Try packaging your application as an asar archive. Accessing an archive is faster than accessing multiple small files.

You may want to use electron-builder for that purpose.

like image 179
Akshay Anurag Avatar answered Oct 05 '22 01:10

Akshay Anurag