12-05-2012 07:20 AM
I have searched through help and all sorts of areas online but am not finding any in depth information on what should be expected for the file size for a built LV application and what techniques can be used to keep it slim.
My case, in LV 2011sp1 I have an extensive application for testing a product. It has several bells and whistles, reads and writes to a database, reads and writes to configuration files and datalog files, uses several SPC function from the DSC module, and so on.
The size of all the code for this app is about 4.5 MB. When I build the application, I end up with a 24 MB+ executable. This just seems excessive to me. I know my app folder does not physically contain the LV library files and such but almost 20 meg worth?
Not really looking for answers to this in particular but rather some direction on where I can go to research the process so I can understand what causes the exe file to grow and by how much. And then, what approach can I use to minimize the executable file size.
For instance, would it be better to exclude certain library files from being incorporated into the exe and instead have llb or dll files in the support structure that contains some of these functions? The size of the overall application folder might not change or actually grow some but would it make the root application run more efficiently ?
Just trying to learn. Thanks for any input.
Doug
12-05-2012 08:19 AM
A 24M application from such a large amount of source code does not seem that excessive. There is a lot going on in the application code that is otherwise taking place in the developement environment. I would be more concerned with performance, memory leaks and crashes. If you are not having in problems in these areas I wouldn't worry about it.
12-05-2012 10:39 AM
I feel your pain: http://forums.ni.com/t5/LabVIEW-Idea-Exchange/LabVIEW-App-Builder-Should-Determine-and-Minimize-Dist...
Unfortunately, it appears that when distributing even remotely complex LabVIEW apps we will always be saddled with large file sizes.
12-05-2012 11:55 AM
It's too big when it wont fit on disk. 🙂
/Y
12-05-2012 03:47 PM
@Yamaeda wrote:
It's too big when it wont fit on disk. 🙂
/Y
8" or 5 1/4"?
12-06-2012 04:40 AM
24+MB?
Seems you configured the build to create a debuggable EXE. This bloats the EXE because it includes the block diagrams and debug hook ups.
There are many ways to reduce the size of the main EXE by creating several modules. One sort of modules would be for example the Packed Project Library.
Norbert
12-06-2012 07:05 AM - edited 12-06-2012 07:07 AM
Nope. Did not enable debugging. Or any other option for that matter. Only checkbox I clicked was to disable the "Use LabVIEW 8.x file layout" which is recommended by NI if you are in a newer version. (Seems the builder would be able to detect your version and default to the preferred setting automatically)
Not sure if that affects file size and in fact, the help file really does not explain the actual implications of this option.
Have considered making some llb's or dll's with some of the stuff but it appears the majority of what is being added is stuff that does not show up as dependencies in my project file so not sure if that approach would do much for me.
Doug
12-10-2012 07:10 PM
Came upon same issue when i upgraded from 7.0 to 2010. I brought it up for a solution and though marked as solved but not really. Just didn't want to waste people's time and the solutions given might work for others.
I did a second check to confirm a stand alone build in 7.0 became > 10x larger when built under 2010. It did. It's the way it is. For me, this is an issue, for others, not so much. Luckily, more and more of the equipment I work with have built in browsers negating the need for the kind of programs I was doing.
Good luck-
12-11-2012 04:47 AM
12-11-2012 05:19 AM