[#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:70572] [Ruby trunk - Feature #11473] Immutable String literal in Ruby 3

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


I often write `[a, b].max`.  This idiom is easy to read and write.  But it is slow, especially in the core loop, because it creates an Array object every times.

For the reason, do you replace all `[a, b].max` with `a < b ? b : a`, not only in the core loop but also in an initialization code that is executed once?  I believe that is stupid.

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

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

* 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