From: richard.schneeman@... Date: 2015-10-02T15:58:14+00:00 Subject: [ruby-core:70969] [Ruby trunk - Feature #11375] Decreased Object Allocation in Pathname.rb Issue #11375 has been updated by Richard Schneeman. Updated to use the `# -*- frozen_string_literal: true -*-` invocation. ---------------------------------------- Feature #11375: Decreased Object Allocation in Pathname.rb https://bugs.ruby-lang.org/issues/11375#change-54341 * 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/