Project

General

Profile

Actions

Feature #13943

closed

Use unpack1 instead of unpack(template)[0] in erb.rb

Added by znz (Kazuhiro NISHIYAMA) about 7 years ago. Updated about 7 years ago.

Status:
Closed
Target version:
-
[ruby-core:83027]

Description

I think unpack1(template) is faster than unpack(template)[0].

Attached patch for lib/erb.rb.


Files

erb-unpack1.diff (355 Bytes) erb-unpack1.diff znz (Kazuhiro NISHIYAMA), 09/27/2017 12:52 PM
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0Like0