apache / apache/arrow

[Ruby] Improve Ruby's GC integration

Open
#40,881 5 comments 2 reactions 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.