From: Eric Wong Date: 2018-05-01T08:46:52+00:00 Subject: [ruby-core:86794] Re: [Ruby trunk Feature#14723] [WIP] sleepy GC Koichi Sasada wrote: > On 2018/05/01 12:47, Eric Wong wrote: > >Oh sorry, I realize I was using the wrong gc.c functions :x > >Something like: > > Thank you. No problem. > > More performance check will be great (to write a NEWS entry :)) I have some folks interested in backport for 2.4 and 2.5. Much of the code I write uses String#clear and other techniques to reduce memory too aggressively to benefit. I can make some patches to benchmark/ from existing examples in commit messages. Anyways v2 of the series is available: The following changes since commit 41f4ac6aa21588722a6323dbbc34274b7e9aec49: ast.c: use enum in switch for warnings (2018-05-01 06:55:43 +0000) are available in the Git repository at: git://80x24.org/ruby.git sleepy-gc-v2 for you to fetch changes up to 9d1609d318821b11614da6f952acadf7d3a3e083: thread.c: native_sleep callers may perform GC (2018-05-01 07:57:21 +0000) v2 updates: - [PATCH 2/4] uses correct functions for incremental work - [PATCH 3/4] accounts for select(2) clobbering its timeval arg - [PATCH 4/4] totally redone; native_sleep callers are all rather complex and it can be improved in future patches ---------------------------------------------------------------- Eric Wong (4): thread.c (timeout_prepare): common function gc: rb_wait_for_single_fd performs GC if idle (Linux) thread.c (do_select): perform GC if idle thread.c: native_sleep callers may perform GC Individual patches available at: https://80x24.org/spew/20180501080844.22751-2-e@80x24.org/raw https://80x24.org/spew/20180501080844.22751-3-e@80x24.org/raw https://80x24.org/spew/20180501080844.22751-4-e@80x24.org/raw https://80x24.org/spew/20180501080844.22751-5-e@80x24.org/raw Also have a Tor .onion mirror if https://80x24.org/ breaks again: http://hjrcffqmbrq6wope.onion/spew/20180501080844.22751-2-e@80x24.org/raw http://hjrcffqmbrq6wope.onion/spew/20180501080844.22751-3-e@80x24.org/raw http://hjrcffqmbrq6wope.onion/spew/20180501080844.22751-4-e@80x24.org/raw http://hjrcffqmbrq6wope.onion/spew/20180501080844.22751-5-e@80x24.org/raw Unsubscribe: