Greenguy's Board


Go Back   Greenguy's Board > Programming & Scripting
Register FAQ Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread Display Modes
Prev Previous Post   Next Post Next
Old 2005-06-15, 07:11 AM   #1
Jeremy
Remember to rebel against the authorities, kids!
 
Jeremy's Avatar
 
Join Date: Aug 2003
Location: AU
Posts: 406
Very Weird Perl Running Time Difference

Hmmmmmm - now here's an odd one:

I'm running perl 5.8.3 from ActiveState (binary build 809) under WinXP SP2.

One little scriptette I've written chunters through about 11k lines in a text file, searches and removes certain lines and then appends the acceptable lines to a data file with some html coding, so the output file can be used as an html doc in another app.

Now here's the rub....

If I append the acceptable data to file.txt the script takes 1min 40 secs to run.

But if instead I append the data to file.html the script takes 50 mins 28 secs to run.

The file extension is the only difference, but I don't understand why it would have such a drastic impact on the script performance.

Any ideas?
__________________
XXX Porno Hardcore
Jeremy is offline   Reply With Quote
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 01:14 PM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc