On Sun, Feb 28, 2010 at 21:39, David Gerard <dger...@gmail.com> wrote: > On 28 February 2010 21:33, Domas Mituzas <midom.li...@gmail.com> wrote: > >> these numbers seriously kick ass. I still can't believe I observe 2000 >> mediawiki requests/s from a single box ;-) > > > So ... how restricted is HipHop PHP, and what are the hotspots in > MediaWiki that would most benefit from it?
Most of the code in MediaWiki works just fine with it (since most of it is mundane) but things like dynamically including certain files, declaring classes, eval() and so on are all out. It should be possible to replace all that at the cost of code that's a bit more verbose. Even if it wasn't hotspots like the parser could still be compiled with hiphop and turned into a PECL extension. One other nice thing about hiphop is that the compiler output is relatively readable compared to most compilers. Meaning that if you need to optimize some particular function it's easy to take the generated .cpp output and replace the generated code with something more native to C++ that doesn't lose speed because it needs to manipulate everything as a php object. _______________________________________________ Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l