John Hawthorn

Results 45 issues of John Hawthorn

For some time at least Ruby has pretenured Class objects, setting their age bits to the oldest immediately on allocation. On Ruby 3.2 and earlier, objects which were referenced by...

Somewhat similar to #48923 (but with a different cause), as of 7.1 we weren't correctly observing `key_provider` when overridden with `with_encryption_context`. I believe this regressed in #44540 (though it feels...

activerecord

In cfd7729ce7a31c8b6ec5dd0e99c67b2932de4732 we started using inline caches for refinements. However, we weren't clearing inline caches when defined on a reopened refinement module. Fixes [[Bug #20246]](https://bugs.ruby-lang.org/issues/20285)

This adds the ability for an extension to trace side exits from YJIT/RJIT on demand. This allows, for example, gathering the same type of data as ``. I believe this...

`Performance/BlockGivenWithExplicitBlock` provides bad guidance and should be removed. The benchmark which was given when it was introduced didn't test the case that a block was given, when that happens `block`...

JSON::LD::Context#parse will only [look in the PRELOADED hash](https://github.com/ruby-rdf/json-ld/blob/develop/lib/json/ld/context.rb#L306) with a fully canonicalized URL including replacing https with http. This means that any preloads or aliases under non-canonicalized names won't work...

We should be able to support this via RapidJSON's `SetIndent` https://rapidjson.org/classrapidjson_1_1_pretty_writer.html#a121686c29ca7fe071fa4108c46955ff0

WIP It's faster to buffer items in a (C) array before creating a hash from them. Partly because this avoids the cost in Ruby of building a `ar_table` before it...

An easy way to get profiling data from a running web server is to have a Rack middleware, which wraps the current request in a profile and returns the profile...

enhancement
good first issue
Ruby