From: Claudio Pedrazzi on
Hi everybody,
I would like to hear your opinion about the impact on execution speed of a MATLAB application:
1) have all the files (around 100 .m) of the application stored in a local directory, on my PC, put as the first one in the path
2) have all the files in a network directory, that would be the second one in the path, let's name it the "production" directory, while the first local directory, on my PC, is empty or anyway contains other files not pertaining to the application.

I would prefer option 2), because this allows every one in the company to use the "production" version of the application, taken from the network. But this must not have a negative impact on performance. Basically I am asking if MATLAB is "smart enough" to read all the requested .m files only one time, maybe the first time they are required, thus avoiding heavvy access to the network during a long execution (I'm speaking of hours of continous running).

Thanks a lot for any opinion
Best regards
Claudio
From: Rune Allnor on
On 24 Feb, 11:29, "Claudio Pedrazzi"
<firstnameinitial.lastn...(a)company.it> wrote:
> Hi everybody,
> I would like to hear your opinion about the impact on execution speed of a MATLAB application:
> 1) have all the files (around 100 .m) of the application stored in a local directory, on my PC, put as the first one in the path
> 2) have all the files in a network directory, that would be the second one in the path, let's name it the "production" directory, while the first local directory, on my PC, is empty or anyway contains other files not pertaining to the application.
>
> I would prefer option 2), because this allows every one in the company to use the "production" version of the application, taken from the network.  But this must not have a negative impact on performance.  Basically I am asking if MATLAB is "smart enough" to read all the requested .m files only one time, maybe the first time they are required, thus avoiding heavvy access to the network during a long execution (I'm speaking of hours of continous running).

MAtlab would check the directories on the path for the
most recent date stamp on the .m files. If one file
'test.m' exists that is younger than the 'test.m' that
is presently loaded, the younger file will be loaded
from disk.

Since matlab is an interpreted language, this will happen
every time any .m file is called.

If you are concerned about code safety or speed, make sure
each PC has its own local copy of the code.

Use a code version control system.

Rune
From: Bruno Luong on
Rune Allnor <allnor(a)tele.ntnu.no> wrote in message <4e35de84-8c97-47dd-87d9-5f9b48590a7b(a)d27g2000yqf.googlegroups.com>...
>
> MAtlab would check the directories on the path for the
> most recent date stamp on the .m files. If one file
> 'test.m' exists that is younger than the 'test.m' that
> is presently loaded, the younger file will be loaded
> from disk.
>
> Since matlab is an interpreted language, this will happen
> every time any .m file is called.

The last sentence is wrong.

Bruno
From: Claudio Pedrazzi on
I am concerned about two things:
1) speed of execution (local copy vs. network copy)
2) uniqueness of code (I have no software management system)

I hoped to hear from the experts that the code will be loaded in memory at the beginning of the execution, and then the performance would be independent of physical storage of the .m file.

Sorry if my first question was unclear.

thanks a lot for any opinion
Claudio
From: Rune Allnor on
On 24 Feb, 14:38, "Claudio Pedrazzi"
<firstnameinitial.lastn...(a)company.it> wrote:
> I am concerned about two things:

> (I have no software management system)

Get one.

There are plenty of freeware systems around.

Rune