[Ruby] Improve Ruby's GC integration
Open
Component: Ruby
Status: needs champion
Type: enhancement
- Dominant language
- C++
- Stars
- 17.1k
- Forks
- 4.3k
- Avg merge
- 3d 13h
- Merged PRs (30d)
- 88
Description
### 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
Contributor guide
Assessment
This issue has not been assessed yet.