On Mon, 18 Jan 2010, Michael Ellery wrote:
> 
> Thanks for that patch. I've patched the file on my system and rebooted -
> now I see times shown below. Now my first startup time is only double my
> "steady state" time, which seems to be an improvement (previous run was
> more than 3 times the subsequent time). However, since the patch appears
> in a .pm file, shouldn't this change have an impact *every time* the
> script is executed, or is this code only loaded under certain conditions?

I suspect that there is some OS level caching going on.  I think some of
the type libraries installed on your machine are stored on a network drive
and not on a local disk.

I don't have time to work out right now if we need those file tests at all,
but I have another idea that might speed up the code some more:  In front
of the line that you modified with the patch insert the following line:

    local ${^WIN32_SLOPPY_STAT} = 1;

Please let me know if this has any effect on your startup time.

Cheers,
-Jan

_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to