Changeset 435

Show
Ignore:
Timestamp:
01/18/07 00:50:08 (2 years ago)
Author:
sandal
Message:

Fix for #134. Unnecessary Memory consumption in CSV format

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/stable/lib/ruport/format/csv.rb

    r371 r435  
    1818    # Calls build_csv_row for each row in the Data::Table 
    1919    def build_table_body 
    20       data.map { |r| build_csv_row(r) }.join("\n") 
     20      data.each { |r| build_csv_row(r) } 
    2121    end 
    2222 
  • trunk/lib/ruport/format/csv.rb

    r371 r435  
    1818    # Calls build_csv_row for each row in the Data::Table 
    1919    def build_table_body 
    20       data.map { |r| build_csv_row(r) }.join("\n") 
     20      data.each { |r| build_csv_row(r) } 
    2121    end 
    2222