I have a php curl script that uses 10 MB per running session.
I’d like to scale things and add more requests but the curl and processing must be taking up too much memory. (I want to add like a 100,000 sessions)
If I had a server side C++ routine would the memory difference be that much different? I don’t want to re-write the whole thing if it really isn’t.
Is there a C++/Java method to keep a rolling curl going?
Thanks!
PHP is getting better with performance all the time, but it is still a fairly heavy language. If you were to use C/C++, you would definutely see major performance increases. For anything under high load, you definutely need to move away from PHP to a more performance-oriented application.
That said, I do agree with Goz. It totally depends on what you are writing, as to what the performance increase will be.