You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@arrow.apache.org by sh...@apache.org on 2019/12/31 01:03:55 UTC
[arrow] branch master updated: ARROW-7474: [Ruby] Improve CSV save
performance
This is an automated email from the ASF dual-hosted git repository.
shiro pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/arrow.git
The following commit(s) were added to refs/heads/master by this push:
new 8d94859 ARROW-7474: [Ruby] Improve CSV save performance
8d94859 is described below
commit 8d94859161c99cfc4a4b0fb3a513bb89484cb4eb
Author: Sutou Kouhei <ko...@clear-code.com>
AuthorDate: Tue Dec 31 10:03:25 2019 +0900
ARROW-7474: [Ruby] Improve CSV save performance
Closes #6106 from kou/ruby-csv-save-improve and squashes the following commits:
95c1e99dc <Sutou Kouhei> ARROW-7474: Improve CSV save performance
Authored-by: Sutou Kouhei <ko...@clear-code.com>
Signed-off-by: Yosuke Shiro <yo...@gmail.com>
---
ruby/red-arrow/lib/arrow/table-saver.rb | 6 ++----
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/ruby/red-arrow/lib/arrow/table-saver.rb b/ruby/red-arrow/lib/arrow/table-saver.rb
index 9ffa843..f098ab6 100644
--- a/ruby/red-arrow/lib/arrow/table-saver.rb
+++ b/ruby/red-arrow/lib/arrow/table-saver.rb
@@ -140,10 +140,8 @@ module Arrow
csv = CSV.new(output, **options)
names = @table.schema.fields.collect(&:name)
csv << names
- @table.each_record(reuse_record: true) do |record|
- csv << names.collect do |name|
- record[name]
- end
+ @table.raw_records.each do |record|
+ csv << record
end
end
end