Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • it would be nice if you can share more details about what those MySql queries did
    i cant imagine how you can drop your processing time from 7200 minutes to 10 minutes, just by using C++
    i doubt C++ have much to do with the speed increase, for example, how does the same algorithm perform in Perl!

    anyway, would you share more details?
    • I'm sorry for not getting back. Here is the reason for the speed up.

      With MySQL here is the fastest access path to data in memory given a unique identifier. You take the value, do a binary search on an index to find the rows you want and what pages of memory they are in. You then parse through that page of memory to pull out the row, grab the fields you want and put it in a temporary table. All of this is done by an interpreter following micro-code.

      Here is the equivalent access path for the C++ code. Ac