[ruby-cvs:66835] glass:r59657 (trunk): csv.rb: optimize CSV::Table#to_a and #to_csv

glass at ruby-lang.org glass at ruby-lang.org
Fri Aug 25 17:13:32 JST 2017


glass	2017-08-25 17:13:32 +0900 (Fri, 25 Aug 2017)

  New Revision: 59657

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=59657

  Log:
    csv.rb: optimize CSV::Table#to_a and #to_csv
    
    * lib/csv.rb (CSV::Table#to_a, #to_csv): use Array#push instead of
      Array#concat for performance improvement. This performance improvement is
      proposed by zdennis <zach.dennis at gmail.com>. The patch is from
      Mau Magnaguagno <maumagnaguagno at gmail.com>.
      close #946

  Modified files:
    trunk/lib/csv.rb


More information about the ruby-cvs mailing list