in reply to CPU utilization

When you read a file 'line by line' in your Perl script, your computer is using an IO buffer to read a suitable chunk of file into memory in the background. The mechanics of the system vary between OS's but the idea is to optimise the IO read operations. Reading a chunk of a file into a memory (using a binary read operation) and then parsing it line-by-line introduces an extra step and therefore decreases the speed of the application.

Replies are listed 'Best First'.
Re^2: CPU utilization
by contact_chatan (Initiate) on Feb 24, 2005 at 13:57 UTC
    Hi inman,
    I am agree with you. So what is the solution of this problem?
    Can it be solved or not? Or its h/w dependent
    Chatanya