- Thread starter
- #84
eliquid
( Jason Brown )
EPIC CONTRIBUTOR
Read Fastlane!
Read Unscripted!
Summit Attendee
Speedway Pass
User Power
Value/Post Ratio
518%
- May 29, 2013
- 1,878
- 9,737
PHP is written in C too
PHP has really evolved and became fast, especially since 7+. Comes with opcache (binary cache) that loads the code in memory and removes the need to interpret it for every request. Takes some memory but can save a lot of CPU.
But yes, the lower-language you go, the faster it usually is.
Yeah we were using PHP 7
It still takes more time though.
PHP 7 code connecting to and talking to/performing actions with Redis PHP drivers ( and MySQL ) was so slow compared to C code talking to/performing actions to the native C base of Redis/MySQL.
I'd have to get the numbers dug out of our development Skype chat, but it was pretty extra-ordinary the amount of time, CPU, and memory saved
.