From 7ab70c3548d26dd7806be86d326fb99a3e7ceef7 Mon Sep 17 00:00:00 2001 From: akr Date: Sun, 4 Oct 2015 13:05:32 +0000 Subject: [PATCH] * ext/pathname/lib/pathname.rb: freeze string literals for reduced object allocation. patch by schneems. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@52023 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- ChangeLog | 5 +++++ ext/pathname/lib/pathname.rb | 1 + 2 files changed, 6 insertions(+) diff --git a/ChangeLog b/ChangeLog index a5fe50de08..271c53d8b9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -18,6 +18,11 @@ Sun Oct 4 00:09:45 2015 Nobuyoshi Nakada - do not set other environment variables, e.g. PWD, SHLVL, etc - do not open other FDs, e.g. pipes for timer thread +Sun Oct 2 10:59:00 2015 schneems + + * ext/pathname/lib/pathname.rb: freeze string literals for + reduced object allocation. + Fri Oct 2 09:20:20 2015 Martin Duerst * common.mk, lib/unicode_normalize/tables.rb: Change Unicode diff --git a/ext/pathname/lib/pathname.rb b/ext/pathname/lib/pathname.rb index 9f23ba502e..85588663f8 100644 --- a/ext/pathname/lib/pathname.rb +++ b/ext/pathname/lib/pathname.rb @@ -1,3 +1,4 @@ +# -*- frozen_string_literal: true -*- # # = pathname.rb #