|
|
|
|
|
by bashkiddie
206 days ago
|
|
Could not read OP, clownflare is down. > Symbols are pseudo-strings Can guess by LISP: Symbols reside in the symbol table, which is global scope.
Strings reside in the variable tables, subject to local scope. It is two different storage mechanisms > inefficient strings Ruby does not care for efficiency, so there is no point to argue for symbols vs string performance |
|
Symbols existed entirely for performance reasons and were once never GC'd: this is absolutely Ruby "car[ing] for efficiency."
Today, Ruby's Symbol is GC'd (and is much closer to 'String' in practicality) but still has enormous impacts on performance.