I have working code written in perl. It runs thousands, sometimes billions of combinations, but it is "slow". It's hard to describe "slow", but it runs at about 1000 combinations per second (not calculations per second, there are many calculations within each combination). But I am told by the perl programmer that created it that it could be re-written in C++ to be made 100 times faster. He also thought that re-writing the perl code might make it faster too, but no idea how much faster.
(The 1000 combinations per second is based on running on a VPS server. It may be faster on your computer locally. As long as it is 100x or more faster, that is the goal.)
I want the attached script to be re-written to be made at least 100x faster. It can be re-written in perl if that could do it, but I suspect we need to re-write it in C++.
The script is part of an online process where a CSV gets uploaded, the algorithm runs, and then the web page displays a bunch of the output and hosts other output files for download/review. It is a PHP server, although I don't know if that matters.
It would also be nice if there was a way for the algorithm to tell the webpage how long it's going to take so that we can have a progress bar (not sure how that works).
I have attached the script and some example input files so you can see what happens when you run it and for benchmarking.
Dear sir,
My name is Tinh Nguyen. I have done many projects in software development and got many positive feedbacks from them. You can check my profile for more detail.
http://freelancer.com/u/nani01029x.html
Let me help you. I'm about to get started right away. Looking forward to your reply.
Thanks and best regards,
Tinh Nguyen
$250 USD in 2 days
4.9 (46 reviews)
4.9
4.9
9 freelancers are bidding on average $413 USD for this job
I will reimplement it in C++. I will apply multithreading where applicable. You pay only for speed improvement (see milestones). Please let me know the target architecture for speed optimization. It will take 21 days and is quite cheap because I program for fun in the evenings. I will answer any questions you might have. Sincerely, Jakob
Hello. Your requirements are clear so far. I have just one note: c++ program unlike perl script should be compiled separately for every particular OS (Windows/Linux). Also I'm not sure about 100 times faster - I need to make some tests first.
Although it's my first work at Freelancer, I'm graduated at one of the top Computer Engineering schools of Latin America, with plenty of expertise with C/C++ development. I would be more than happy to contribute with your work.
Ps: To be completely honesti wih you I can rewrite the script in C++ and optimize it, but I can't promise the 100x performance gain you're looking for. Most likely even the perl programmer itself was just giving you a rough idea of the possible gain: in other words it could be 50x or 150x faster.