I was just going to post this suggestion, but saw that it was already here. `uniq?` could be helpful, for example, where you are loading objects from an external source (e.g. from JSON or YAML), and you need to verify that the objects...keithrbennett (Keith Bennett)
I don't think the `Ractor#make_shareable` method and the `shareable_constant_value` pragma address this issue, for a few reasons: 1) they do a recursive deep freeze; `freeze_values` is just for a single level freeze; that is, call `fr...keithrbennett (Keith Bennett)
Koichi - Huge improvement! Thank you! I installed Ruby head and now have the following output from `ruby -v`: ``` ruby 3.1.0dev (2021-02-15T09:29:35Z master 37b90bcdc1) [x86_64-linux] ``` I made minor modifications to your ...keithrbennett (Keith Bennett)
Suggestion: Implement `freeze_values` instance method on collection-like classes. By collection-like classes, I mean classes such as Array, Hash, Set, Struct, OpenStruct, and custom classes containing multiple objects. There has be...keithrbennett (Keith Bennett)
@ko1 - My apologies for not responding sooner. I guess I have not configured this forum correctly to receive notifications, I'll look into that. I've tested my benchmark against Ruby head, and performance with multiple cores seem to h...keithrbennett (Keith Bennett)