4 ms·
Since any web-framework should be mostly IO-driven, the actual speed of the code matters very little as it will in most cases always be nothing compared to the
by Skinney 13y ago
Since any web-framework should be mostly IO-driven, the actual speed of the code matters very little as it will in most cases always be nothing compared to the actual IO-operation itself :/ In case you need certain code to run very fast, most people will write that in C/C++ and patch it into their solution, that's what we did in the Django-workshop I used to work in.
I thought Facebook mostly used C++ for their PHP VM? Facebook itself is alot of PHP, they also use Cassandra (Java DB) for inbox messages I believe.
- pork 13y agoNo -- Facebook's PHP code is translated to C++ by HipHop and compiled into a monolithic binary, and Cassandra has largely been deprecated in favor of HBase.
- Skinney 13y agoFacebook is using HipHopVM, which is a JIT for PHP. HipHop is no longer a PHP -> C++ compiler. Didn't know they switched to HBase, it's still Java though.
- bandushrew 13y agohttps://www.facebook.com/note.php?note_id=10150415177928920 https://www.facebook.com/note.php?note_id=10150415177928920 "Facebook uses hphpi (and now hhvm) for day-to-day software development, but uses the HipHop compiler (hphpc) to create optimized binaries that serve the Facebook website. hphpc is in essence a traditional static compiler that converts PHP→AST→C++→x64."
- Skinney 13y agoThat note is from 2011. According to wikipedia: http://en.wikipedia.org/wiki/HipHop_for_PHP http://en.wikipedia.org/wiki/HipHop_for_PHP "in Q1 2013, the production version of facebook.com started running on HHVM, replacing HPHPc."
- bandushrew 13y agoohh, nice. I wonder how well silverstripe runs on it....