Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Multiple procedures vs. one procedure - revisited
Message
From
10/06/2005 13:47:22
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
OS:
Windows XP SP2
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01022173
Message ID:
01022233
Views:
13
Hi Nadya,

>In MereMortals everything which is added to the project is automatically put in SET PROCEDURE list. Do you know, if there is a way to control in which order the procedures are loaded? Is the order important?

It can be: if you have functions / procedures with the same name <g>. The function found in the file latest set proc to is used. Nothing to be doing on a regular basis, but nice for some dirty hacks <g>.

>We had visCollect_cursors procedure. It was very inconvenient to work with one procedure, because we're using Visual Source Safe, so there could be only one developer working with this file at the given time, which is well, don't want to use the bad word, but don't know another term, so "PITA". Besides, it was hard to maintain. So we splited it logically and created Letters_Cursors, TQM_Cursors, etc. But now it seems to me that one form is loading slower than before and I think it might be related to the SET PROCEDURE...

Maybe... Each call to "Set Proc" takes a detour to the disk (probably along the whole path - but here I am not certain) for every already loaded proc file. So if there also is a recurring line like
set proc to blabla additve without previous check if the proc is already loaded, and it is recurring quite often...

>Would you please help me to understand, if I'm right in my suspicion and what can I do to improve the situation?

use code references / other tools to find all set proc lines and visualize how often they are called.
Probably easier than filemon, which is how I realized the behaviour. Why this is happening I have no clue, but you can control the negative effects in your own code.

HTH

thomas
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform