Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improve performance of
color_name
function in log subscriber
Move runtime version comparison into file-load comparison, since the gem version does not change while the process is running. This removes two Gem::Version.new allocations (which in turn does some regex scans and string allocations), as well as a Hash allocation (on Rails 7.1+) per `color_name` call.
- Loading branch information