Re: Ruby's symbols
| From: | Ivan Enderlin @ Hoa | Date: | Sat, 05 Jan 2013 12:27:54 +0000 |
| Subject: | Re: Ruby's symbols | ||
| References: | 1 2 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-64548@lists.php.net to get a copy of this message | ||
On 05/01/13 13:21, Nikita Popov wrote:
[snip] If this is about memory savings, then I don't think it will help at all. PHP uses interned strings, so all those "label" etc strings in your above example actually use the same string value. The hash for those strings is also precomputed, so symbol don't have a performance advantage either. That's what I refered in my previous mail. Thanks Nikita (Popov) for the clarification.Best regards. -- Ivan Enderlin Developer of Hoa http://hoa.42/ or http://hoa-project.net/ PhD. student at DISC/Femto-ST (Vesontio) and INRIA (Cassis) http://disc.univ-fcomte.fr/ and http://www.inria.fr/ Member of HTML and WebApps Working Group of W3C http://w3.org/