From: richard.schneeman@... Date: 2015-07-19T20:44:23+00:00 Subject: [ruby-core:70043] [Ruby trunk - Feature #11375] [Open] Decreased Object Allocation in Pathname.rb Issue #11375 has been reported by Richard Schneeman. ---------------------------------------- Feature #11375: Decreased Object Allocation in Pathname.rb https://bugs.ruby-lang.org/issues/11375 * Author: Richard Schneeman * Status: Open * Priority: Normal * Assignee: ---------------------------------------- Pathname.rb has many string literals that are not mutated while being called. We can reduce object allocation and increase program speed by freezing these string literals. I've attached a patch that adds `.freeze` to all non-mutated string literals in `ext/pathname/lib/pathname.rb`. Tests on `test/pathname/test_pathname.rb` pass ---Files-------------------------------- ruby-changes.patch (6.38 KB) -- https://bugs.ruby-lang.org/