[#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:70534] [Ruby trunk - Bug #9080] [Closed] ENV[key] produces three objects

From: ko1@...
Date: 2015-08-21 23:42:58 UTC
List: ruby-core #70534
Issue #9080 has been updated by Koichi Sasada.

Status changed from Open to Closed

Please reopen if you feel it is worth to fix.


----------------------------------------
Bug #9080: ENV[key] produces three objects
https://bugs.ruby-lang.org/issues/9080#change-53942

* Author: Yehuda Katz
* Status: Closed
* Priority: Normal
* Assignee: Koichi Sasada
* ruby -v: ruby 2.0.0p343 (2013-10-31) [x86_64-linux]
* Backport: 1.9.3: UNKNOWN, 2.0.0: UNKNOWN
----------------------------------------
This code:

  ENV["HOME"]

allocates three T_STRING according to ObjectSpace.count_objects. Unless I'm missing something, it should only need to allocate one string.



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

In This Thread

Prev Next