For Programmers: Free Programming Magazines  


Home > Archive > Visual Basic > August 2004 > VB Resource File Question









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author VB Resource File Question
Tim

2004-08-30, 3:55 pm

I have alot of images that use in my application and I was wondering the
advantages and divantages of using the resource file. I am concerned
about the exe getting to large and slowing down the application loading
time. I already have it optimized to handle varies uploading functions and
do not want to make too much slower. Is loading a file from the resource
file faster that loading via a file?

Thanks


Gaurav - http://www.gauravcreations.com

2004-08-30, 8:55 pm

Adding images to the resource file will definitely blow up the executable
size , comsume much more memory and increase the loading time of the
application

however it is definitely faster since everthing is accessed from the
memory(much better that disk I/O)...

however i would personally recommend you to go without resource file atleast
for images... loading time and extra memory is much more painfull than a
little bit slow application......

"Tim" wrote:

> I have alot of images that use in my application and I was wondering the
> advantages and divantages of using the resource file. I am concerned
> about the exe getting to large and slowing down the application loading
> time. I already have it optimized to handle varies uploading functions and
> do not want to make too much slower. Is loading a file from the resource
> file faster that loading via a file?
>
> Thanks
>
>
>

MikeD

2004-08-30, 8:55 pm


"Tim" <Tim@nospam.com> wrote in message
news:ezi7$isjEHA.3844@TK2MSFTNGP12.phx.gbl...
> I have alot of images that use in my application and I was wondering the
> advantages and divantages of using the resource file. I am concerned
> about the exe getting to large and slowing down the application loading
> time. I already have it optimized to handle varies uploading functions

and
> do not want to make too much slower. Is loading a file from the resource
> file faster that loading via a file?



I've never heard of any size resource file affecting application
performance. If the resource file increases the EXE's size by 20 MB,
performance should still be the same. In fact, it'll probably be better
becausing loading from a resource is a lot quicker than loading from a file
(and there's no danger of the user deleting or moving the file).

Mike


Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2009 codecomments.com