lilydjwg / swapview-rosetta

Print swap usage per process. Implemented in various programming languages
493 stars 108 forks source link

Ruby: add a parallel version using Ractor #179

Closed felixonmars closed 2 years ago

felixonmars commented 2 years ago

Requiring Ruby 3+.

Benchmarking here shows a 2.6s -> 1.8s improvement to the regular single-threaded version.

lilydjwg commented 2 years ago

The Ractor is multi-threading thing like Python's concurrent.futures? If so, it should be a separate version like other multi-threading/process implementations.