Project

General

Profile

Actions

Bug #11310

closed

CSV::Table#to_csv should use concat not +

Added by zdennis (Zach Dennis) almost 9 years ago. Updated over 6 years ago.

Status:
Closed
Target version:
-
ruby -v:
ruby 2.2.2p95 (2015-04-13 revision 50295) [x86_64-linux-gnu]
[ruby-core:69745]

Description

The current implementation of CSV::Table#to_a method uses Array#+ to which is really bad on performance. It seems like it should use Array#concat.

Relevant Github PR: https://github.com/ruby/ruby/pull/946

Actions

Also available in: Atom PDF

Like0
Like0Like0