Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses

Re^5: Reduce CPU utilization time in reading file using perl

by BrowserUk (Pope)
on Sep 30, 2013 at 08:42 UTC ( #1056310=note: print w/replies, xml ) Need Help??

in reply to Re^4: Reduce CPU utilization time in reading file using perl
in thread Reduce CPU utilization time in reading file using perl

It would be ood if you can suggest something other than loading the file content into database and fetching it.

Probably, but not based on the information you've provided so far. Why do you seem reluctant to provide information?

Please provide:

  • The size in bytes of both files.
  • The number of records in both files.
  • The number of fields in the lines of both files.
  • A couple of sample records from both files.

    If the data is proprietary, then take a couple of sample records and change the identifying words, numbers etc., but try to ensure that they remain realistic.

  • And idea of how often you will need to do this and how often the file(s) change.

    Ie. "The bigger file remains constant and the smaller changes one a week";

    Or: "This is a one-off problem never to be repeated".

    Or: "The two files never change, but the (combination of) fields used for comparison changes every day".

    Or: ...

With that information, we here have a realistic chance of understanding the scale of the problem and possible solutions.

With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
  • Comment on Re^5: Reduce CPU utilization time in reading file using perl

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1056310]
What's the matter? Cat got your tongue?...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (3)
As of 2018-03-21 03:54 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (263 votes). Check out past polls.