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+.
---
 extras/exec_cgi.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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 @@ def close
     SERVER_PROTOCOL
     SERVER_SOFTWARE
     SCRIPT_NAME
-  ).map(&:freeze)  # frozen strings are faster for Hash assignments
+  )
 
   def initialize(*args)
     @env = Hash === args[0] ? args.shift : {}
-- 
EW

--
unsubscribe: [email protected]
archive: https://yhbt.net/yahns-public/

Reply via email to