Welcome to the Monastery | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
You are reading MSMLogs.txt everytime, you read ONE line in br.1. So given 7K lines in that file and 3K line the other that makes 21,000,000 read operations + 3K times opening and closing the file. Of course that is slow.
Put the contents of br.1 into an array and loop over that. holli You can lead your users to water, but alas, you cannot drown them. In reply to Re: Delay in Writing the data to Text file
by holli
|
|