Re:Facebook rewrites PHP runtime, will open source on Tuesday
by a0002 on Sunday January 31, 2010 @05:15PM
(#1091210)
Quick question from a noob: why do references make it harder to make a fast implementation? I'm genuinely interested in the topic, could you post a link to your PhD thesis or some other relevant information?
Cheers
[ Parent
| on HN ]
Re:Facebook rewrites PHP runtime, will open source on Tuesday
by romland on Sunday January 31, 2010 @08:38PM
(#1091531)
I am guessing it is related to dereferencing. It seems Google agrees, it's also mentioned on Wikipedia at http://en.wikipedia.org/wiki/Reference_%28C%2B%2B%29#Relatio...
[snip]...consequence of this is that in many implementations, operating on a variable with automatic or static lifetime through a reference, although syntactically similar to accessing it directly, can involve hidden dereference operations that are costly.[/snip]