diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-10-04 13:05:32 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2015-10-04 13:05:32 +0000 |
commit | 7ab70c3548d26dd7806be86d326fb99a3e7ceef7 (patch) | |
tree | 35aa9c88a7a7bda43ab20261a67d8cb173136036 | |
parent | 53672aa9a6e543be871f256806afd9b9ad81636b (diff) | |
download | ruby-7ab70c3548d26dd7806be86d326fb99a3e7ceef7.tar.gz |
* 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
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | ext/pathname/lib/pathname.rb | 1 |
2 files changed, 6 insertions, 0 deletions
@@ -18,6 +18,11 @@ Sun Oct 4 00:09:45 2015 Nobuyoshi Nakada <nobu@ruby-lang.org> - 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 <richard.schneeman@gmail.com> + + * ext/pathname/lib/pathname.rb: freeze string literals for + reduced object allocation. + Fri Oct 2 09:20:20 2015 Martin Duerst <duerst@it.aoyama.ac.jp> * 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 # |