[#70257] [Ruby trunk - Feature #11420] [Open] Introduce ID key table into MRI — ko1@...

Issue #11420 has been reported by Koichi Sasada.

11 messages 2015/08/06

[ruby-core:70570] [Ruby trunk - Feature #11473] Immutable String literal in Ruby 3

From: mame@...
Date: 2015-08-24 15:42:42 UTC
List: ruby-core #70570
Issue #11473 has been updated by Yusuke Endoh.


Akira Tanaka wrote:
> This issue tries to solve more than performance.
> As Matsuda-san explained, it solves a social problem.

Adding `.freeze` blindly is stupid.  It should be added only when it is really needed, i.e., only when a string literal in a core loop was proved to be the bottleneck.  The core loop is <10% of the code.  Do not bring the burden to the innocent 90% of the code.

-- 
Yusuke Endoh <mame@ruby-lang.org>

----------------------------------------
Feature #11473: Immutable String literal in Ruby 3
https://bugs.ruby-lang.org/issues/11473#change-53978

* Author: Koichi Sasada
* Status: Assigned
* Priority: Normal
* Assignee: Yukihiro Matsumoto
----------------------------------------
Matz said "All String literals are immutable (frozen) on Ruby 3".

This ticket is place holder to discuss about that.




-- 
https://bugs.ruby-lang.org/

In This Thread

Prev Next