[ruby-core:83027] [Ruby trunk Feature#13943] Use unpack1 instead of unpack(template)[0] in erb.rb

From: zn@...
Date: 2017-09-27 12:56:36 UTC
List: ruby-core #83027
Issue #13943 has been reported by znz (Kazuhiro NISHIYAMA).

----------------------------------------
Feature #13943: Use unpack1 instead of unpack(template)[0] in erb.rb
https://bugs.ruby-lang.org/issues/13943

* Author: znz (Kazuhiro NISHIYAMA)
* Status: Assigned
* Priority: Normal
* Assignee: k0kubun (Takashi Kokubun)
* Target version: 
----------------------------------------
I think `unpack1(template)` is faster than `unpack(template)[0]`.

Attached patch for `lib/erb.rb`.

---Files--------------------------------
erb-unpack1.diff (355 Bytes)


-- 
https://bugs.ruby-lang.org/

Unsubscribe: <mailto:ruby-core-request@ruby-lang.org?subject=unsubscribe>
<http://lists.ruby-lang.org/cgi-bin/mailman/options/ruby-core>

In This Thread

Prev Next