I written one high performances script in php. Which takes 30 ms time to execute.
now i have make this script more sealable so i have done rnd on following points. What i am looking is the do parallel processing on chunk of the code to minimize the time 30 ms to 15 ms and more distributes so script can serve more requests.
- Gearman
i am done some rnd on gearman using it's asynchronous task handler i can achieve parallel task in php code.
- C++
Second option is convert entire php script into c++ extension which helps to improve the scrip and in c++ i can also use threads.
all this i am planning so i need help they are other ways i can scale the script?
can c++ helps in parallel processing?