Issue: our parser is using 100% CPU once run on a machine, till it finishes its processing.
Good for you! I wish my programs could use 100% CPU time until they are finished. Unfortunally, they usually have to compete against other programs, and don't get enough 100% of the CPU time. 100% CPU time is (usually) a good thing.
Instead of reading one line at a time from the log file, I want to read a block and keep it in memory (lets say 10 kb) , However we are facing some problem then how our parser will react as it read file line by line instead of chunk of file and in this case how will I parse our log file.
Perhaps this will make your program more efficient. Perhaps not. It all depends on what your program is doing. If I had to bet though, I'd bet that it wouldn't make your program more efficient. If you're using 100% CPU time, it seems your program is CPU bound, and fiddling with size of the chunks you read from disk matters mostly from programs that have an I/O bottleneck.
Perl has a Win32 package. How can I use this package to reduce the CPU usage as I got the following line of code but I am unable to use it.
What line of code is that, and why are you unable to use it?
Seeking a great help from your side. Please do it as soon as because it is very urgent for me.
You really think that going to a forum with volunteers of various quality is a smart thing to do if you have an urgent problem?

In reply to Re: CPU utilization by Anonymous Monk
in thread CPU utilization by contact_chatan

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.