At 01:46 AM 2/17/01 -0800, $Bill Luebkert wrote:
>Bennett Haselton wrote:
>>
>> Weird -- I ran your script below and I got the output:
>>
>> Marker 1: 0.035 seconds
>> Marker 2: 1.932 seconds
>> Marker 3: 20.718 seconds
>>
>> i.e. for me, initializing with the file was still much faster. I ran my
>> original script on a UNIX box and also got the result that initializing
>> with the file was much faster.
>
>It's possible on UNIX that the disk cache is still full from when you
>wrote the file in the first place - try running it later, after
>running a lot of other stuff to flush the cache, and without
>re-building the file again (remove the for loop).
I tried that and it was *still* faster to initialize the Parser object
using a file as an argument instead of a string, and iterate through the
<A> tags in the file -- even after waiting an hour to let the file expire
from the disk cache.
Weird. Oh well, now instead of passing the string to the constructor, I
print it to a temporary file and pass the filname to the constructor.
-Bennett
[EMAIL PROTECTED] http://www.peacefire.org
(425) 649 9024
_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-users