General information
Category:
Coding, syntax & commands
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only