Long load times with larger executables?

106 views
Skip to first unread message

Zach Bennett

unread,
Aug 2, 2013, 6:07:07 PM8/2/13
to node-...@googlegroups.com
Hi all,

I'm using node-webkit to package some web apps with larger media files embedded in them, and I'm experiencing long load times under certain circumstances.  I'm packaging my apps as Windows executables and putting them on removable media for distribution (CD/DVD/Flash drives).  My original app was around 1gb and included all of my media.  The 1gb app took way too long to open, so I split it into 10 smaller apps, ranging from 80mb to 180mb.  The smaller apps don't take terribly long to open from my local hard drive, but there is some noticeable delay.  They take a little longer to load from a Flash drive, though, and they take *forever* to load from CD/DVD.

Has anyone experienced similar issues?  Have you come up with or seen any creative solutions to let the end user know why it's taking so long?  I realize that removable media simply won't be as fast as my local drive, but it would be great if I could display a "loading" message while the rest of the app loads.

Thanks,
Zach

Roger

unread,
Aug 3, 2013, 12:30:17 AM8/3/13
to node-...@googlegroups.com
Hello,

There is a way of "packaging" apps that no zipping is needed -- just put nw executable and other files in the same dir with package.json. It's now recommend as a default way, see https://github.com/rogerwang/node-webkit/wiki/How-to-package-and-distribute-your-apps , step 2a, 2nd bullet.

Regards,

Roger



--
You received this message because you are subscribed to the Google Groups "node-webkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-webkit...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Alex Casanova

unread,
Aug 3, 2013, 1:05:55 PM8/3/13
to node-...@googlegroups.com
Hi Roger,

Just to clarify, how would the end result look? Would it be a folder with the nw files and the rest of the source code? No zipping of any kind? I've been using nodebob with win7 and just curious if I can speed up the startup process. Although I have seen a noticeable speed boost using nw - 0.6.3.

Roger

unread,
Aug 7, 2013, 10:28:19 PM8/7/13
to node-...@googlegroups.com
On Sun, Aug 4, 2013 at 1:05 AM, Alex Casanova <alexcasa...@gmail.com> wrote:
Hi Roger,

Just to clarify, how would the end result look? Would it be a folder with the nw files and the rest of the source code? No zipping of any kind?

Right.

Roger

Юрий Соловьёв

unread,
Aug 12, 2013, 8:58:12 AM8/12/13
to node-...@googlegroups.com
any news about this type of packaging? https://github.com/rogerwang/node-webkit/issues/151

четверг, 8 августа 2013 г., 6:28:19 UTC+4 пользователь Roger Wang написал:

Chris Lupi

unread,
Mar 18, 2015, 11:35:58 AM3/18/15
to nwjs-g...@googlegroups.com, node-...@googlegroups.com
Hey Zach!

Are you using Enigma Virtual Box to package your app into an exe?

and...@ctech.me

unread,
Mar 18, 2015, 4:04:00 PM3/18/15
to nwjs-g...@googlegroups.com, node-...@googlegroups.com
If you have compressed files on a CD/DVD or USB key it is going to take a longer time to start up. Depending on how you packaged it, when you run your nw.js app it is going to decompress your project files and move them into the temp folder of your OS. Decompressing something off of a USB or DVD is going to be noticeably slower, because the speeds at which you can read and write differ from your hard drive.

So, you can just have your project files naked like in the other suggestions or compress it for a slower start time. I'm unsure about Enigma Virtual Box solution. Theoretically, it doesn't decompress any files, but windows might take a minute to load it all into memory from DVD/CD before it will display anything if its a single large file (couple hundred mb +).
Reply all
Reply to author
Forward
0 new messages