From: richard.schneeman@... Date: 2015-10-02T15:56:58+00:00 Subject: [ruby-core:70968] [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-54340 * 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 (658 Bytes) -- https://bugs.ruby-lang.org/