Open kou opened 3 months ago
Use case: #40798
Hi, may I ask if there is any planning/estimation for this yet? What does the effort look like? Would you need any help?
This will be included in 17.0.0. (16.0.0 will not include this.)
It seems that this will not be related to your use case. I think that raw_records
is related instead. raw_records
creates many Ruby objects. It will make GC heavy. Why do you want to use raw_records
. In general, you should process Arrow data without raw_records
. raw_records
is optimized but the conversion copies data that Apache Arrow want to avoid.
Oh ok, thank you for your response. For my case, I'm doing some (legacy) post-processing in Ruby. I will try to study Ruby GC more.
Thank you!
Describe the enhancement requested
Ruby doesn't know how much memory is used in Apache Arrow C++/GLib. So Ruby can't detect a good timing to run its GC.
We can give hints for the current memory usage by calling
rb_gc_adjust_memory_usage()
. Ruby will run its GC the right timing with this.Component(s)
Ruby