Re: procedure in separate files = slow execution? by Fred
Fred
Thu Oct 21 10:03:34 CDT 2004
Great! There's yet another quirk in versions of VFP that's probably even
worse, though it only seems to be a problem at startup. If you've used UNC
naming and have portions of your application (classlibs, etc.) on different
servers, when you go to execute your .EXE if the server isn't avaialable,
there's a several second delay before your .EXE starts. If the server is
available, no delay occurs. Once the delay happens, it doesn't appear to
occur again other than at startup.
VFP8 has SYS(2450) that should help with this. I've only noticed the
problem with UNC naming, but even drive letter shares should benefit.
--
Fred
Microsoft Visual FoxPro MVP
"Andrew Howell" <ajh@work> wrote in message
news:OE$Pwu0tEHA.3056@TK2MSFTNGP10.phx.gbl...
> Andrew Howell wrote:
>> Fred Taylor wrote:
>>> Another possible slow down in FPW with separate files: if you have
>>> FUNCTION or PROCEDURE as the first line of your code, that runs
>>> slower than just leaving it off. I think this was something that got
>>> fixed in VFP, but was a problem in FPW/FPD.
>>
>> Thanks for the answers everyone.
>>
>> Good call Fred. This makes it noticeably faster although filemon is
>> still showing foxpro searching the whole path for a file of the
>> function name before giving up and finding it in the .EXE itself.
>
> Actually, I'm wrong there (there were a couple of other functions I'd
> forgotten.)
>
> Having PROCEDURE or FUNCTION as the first line in a separate program makes
> FPW search the path every call. Removing PROCEDURE or FUNCTION (from all
> separate programs <g>) stops this search and this eliminates the slowdown.
> I
> guess they got something a bit kooky in the routine that searches for the
> symbols/links in FPW.
>
> Not the first time I owe you Fred ;)
> Many thanks, I'm happy again.
>
> --
> Regards
> Andrew Howell
>
>