[#79532] Immutable Strings vs Symbols — Daniel Ferreira <subtileos@...>

Hi,

15 messages 2017/02/15

[ruby-core:79564] Re: Immutable Strings vs Symbols

From: Eric Wong <normalperson@...>
Date: 2017-02-17 00:46:57 UTC
List: ruby-core #79564
Daniel Ferreira <subtileos@gmail.com> wrote:
> But given that symbols are actually less performant than immutable
> strings 

I did not say that, I only gave some examples where that is
true.  However, there are counter-examples, as well.  I seem to
recall some comparisons (method/constant lookup) are still
faster when mapping to internal IDs is required.  Maybe internal
IDs can be replaced with strings, I don't know...

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread