Ok at first I need to describe situation. I am PHP programmer, and havent worked with C++ before.
I want to make c++ analog of my PHP version script with I made.
PHP version script is not fast enough. With Boost for PHP (Facebook stuff) I saved ~50% script speed. So C++ can be faster.
Script idea. it takes data from mysql and parse it to find all phrases (example max 5 words) in text. After finding them most popular (example having 2 marches) goes to output. output is sql query (to insert new data to mysql).
I can provide PHP and my try to make c++ working. My code version of c++ was much slower then PHP version (lack of experience and choose wrong libs?). So I need help.
Slow C++ version [login to view URL]