| View previous topic :: View next topic |
| Author |
Message |
dmonckton Contributor


Joined: 09 Aug 2002 Posts: 117 Location: Lewes, U.K.
|
Posted: Fri Mar 02, 2007 10:49 am Post subject: Including libraries |
|
|
Hi
I have a large library of functions that I always include at the start of a new project. I only need a small number at a time. Does including loads of unused subroutines have any adverse effects on the final application?
Thanks
David.M |
|
| Back to top |
|
 |
Hooligan VDS Developer


Joined: 28 Oct 2003 Posts: 480 Location: California
|
Posted: Fri Mar 02, 2007 1:51 pm Post subject: |
|
|
Hi David,
That's known as bloatware... M$ does it all the time, it never bothers them!
Other than using up memory, it shouldn't hurt anything... (Unless the user doesn't have much memory available...)
Hooligan _________________ Hooligan
Why be normal? |
|
| Back to top |
|
 |
DaveR Valued Contributor


Joined: 03 Sep 2005 Posts: 413 Location: Australia
|
Posted: Fri Mar 02, 2007 1:55 pm Post subject: |
|
|
I'm only guessing here... but "including" the dsc, dsu etc would only affect the executable's compiled size. But "defining" lots of unused commands and functions *may* have an adverse affect on memory use and runtime speed.
But what I would like to see is people sharing their libraries of user defined functions and commands (in the Visual DialogScript 5 Source Code forum - http://www.vdsworld.com/forum/viewforum.php?f=18 ) _________________ cheers
Dave |
|
| Back to top |
|
 |
jwfv Valued Contributor

Joined: 19 Mar 2002 Posts: 422 Location: Beaufort, SC
|
Posted: Fri Mar 02, 2007 2:28 pm Post subject: |
|
|
That is a great idea, Dave. I would like to see more of that as well. Heck, it might even make me actually code mine properly, comment the code, and share a few functions and subroutines! _________________ Joe Floyd |
|
| Back to top |
|
 |
dmonckton Contributor


Joined: 09 Aug 2002 Posts: 117 Location: Lewes, U.K.
|
Posted: Fri Mar 02, 2007 4:38 pm Post subject: |
|
|
Then the only way to get round this is to define each library function on a separate line and rem it out when I don't need it!! This is a bit crap and I'm sure I'm going to rem out the wrong functions....
David.M |
|
| Back to top |
|
 |
vdsalchemist Admin Team

Joined: 23 Oct 2001 Posts: 1448 Location: Florida, USA
|
Posted: Sat Mar 03, 2007 2:01 am Post subject: |
|
|
dmonckton,
I would say that you need a program that would do the following steps before you compile the Final Exe.
1) read your script and find all the functions and commands that are in your library.
2) build a library with just those functions.
3) change the #include statement in your script to reflect the new library.
4) compile your script and have a non-Micro$oft application.
Now to be honest with you most VDS Exe's don't get over a few hundred KBytes so I don't think it will be an issue on most PC's. The size of the script not only affect's the size of the Exe but also it's memory consumption. VDS is a true interpreted language. This means that every line is interpreted 1 line at a time. VDS does not translate the scrpt to some other form durring compilation. _________________ Home of
Give VDS a new purpose!
 |
|
| Back to top |
|
 |
|