From: ko1@... Date: 2015-08-21T23:42:58+00:00 Subject: [ruby-core:70534] [Ruby trunk - Bug #9080] [Closed] ENV[key] produces three objects 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/