about summary refs log tree commit homepage
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2018-12-28 19:40:52 +0000
committerEric Wong <e@80x24.org>2018-12-28 19:40:52 +0000
commit434374199995022251f9adddc4c277ef9a952b71 (patch)
tree558fd4c443990ccee83824cb9a8247d249623088
parent09a4d6d4ac205f43109a51ccb0a1db815ff7242b (diff)
downloadyahns-434374199995022251f9adddc4c277ef9a952b71.tar.gz
Operations via Array#map are NOT optimized away by opt_str_lit
in the VM, and they're unnecessary anyways with the
"frozen_string_literal: true" comment in Ruby 2.3+.
-rw-r--r--extras/exec_cgi.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/extras/exec_cgi.rb b/extras/exec_cgi.rb
index 2746c09..8a1939d 100644
--- a/extras/exec_cgi.rb
+++ b/extras/exec_cgi.rb
@@ -82,7 +82,7 @@ class ExecCgi
     SERVER_PROTOCOL
     SERVER_SOFTWARE
     SCRIPT_NAME
-  ).map(&:freeze)  # frozen strings are faster for Hash assignments
+  )
 
   def initialize(*args)
     @env = Hash === args[0] ? args.shift : {}