3 ms·
Why not simply using hiphop-php ? Try using HipHop before using the word "simple." Take it from me, as someone who's been playing with it inside of the last 72
by mootothemax 14y ago
Why not simply using hiphop-php ?
Try using HipHop before using the word "simple." Take it from me, as someone who's been playing with it inside of the last 72 hours, it's not an instant plug-in option, and it's absolutely not simple. You're compiling PHP scripts to C++, and if you use any non-standard modules, you're going to be in for some fun.
This option is simple: it's a plug-in module, just like APC, and it requires very little setup or configuration.
If you're going from using nothing to using Zend Optimizer+, you should be blown away by the difference it makes.
- mjs 14y agoWhat version are you using? HHVM (with JIT) is the successor to HPHPc (the version that has the C++ intermediate stage), and is faster. See http://www.facebook.com/note.php?note_id=10150415177928920 http://www.facebook.com/note.php?note_id=10150415177928920
- mootothemax 14y agoI was playing with HHVM, given quite how much FB emphasize not to even try with HPHPc ;-)
- thelarry 14y agoAt what sort of scale do you really need to switch from php to hip hop?
- mootothemax 14y agoAt what sort of scale do you really need to switch from php to hip hop? Honestly, I think that's a bit of a "how long is a piece of string" question. First step is to do zero scaling. As users come on board and you start hitting performance issues, work out where your problems lie - the database or filesystem rather than your code - and optimize for that. Let's not forget the classic one either: your server might just be underpowered or lacking in RAM. Once you get into significant numbers of users or usage, it'll quickly become apparent where the bottlenecks lie, and you should optimize as appropriate. So going back to your question: when PHP becomes the bottleneck.
- stonewhite 14y agoThe example code made me smile function f ($a, $k) var_dump($hit);