From: richard.schneeman@... Date: 2015-07-19T21:00:30+00:00 Subject: [ruby-core:70046] [Ruby trunk - Feature #11375] Decreased Object Allocation in Pathname.rb Issue #11375 has been updated by Richard Schneeman. File ruby-changes.patch added ---------------------------------------- Feature #11375: Decreased Object Allocation in Pathname.rb https://bugs.ruby-lang.org/issues/11375#change-53468 * 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.42 KB) ruby-changes.patch (6.42 KB) -- https://bugs.ruby-lang.org/