From: "naruse (Yui NARUSE)" Date: 2022-11-20T08:18:40+00:00 Subject: [ruby-core:110824] [Ruby master Feature#17472] HashWithIndifferentAccess like Hash extension Issue #17472 has been updated by naruse (Yui NARUSE). Status changed from Open to Rejected As far as I understand, after `HashWithIndifferentAccess` is optimized to use `Symbol#name` and avoids to create duplicated string objects, it is not a performance bottleneck now. If people identify this is a bottleneck again with benchmark, let's discuss again! ---------------------------------------- Feature #17472: HashWithIndifferentAccess like Hash extension https://bugs.ruby-lang.org/issues/17472#change-100180 * Author: naruse (Yui NARUSE) * Status: Rejected * Priority: Normal ---------------------------------------- Rails has [ActiveSupport::HashWithIndifferentAccess](https://api.rubyonrails.org/classes/ActiveSupport/HashWithIndifferentAccess.html), which is widely used in Rails to handle Request, Session, ActionView's form construction, ActiveRecord's DB communication, and so on. It receives String or Symbol and normalize them to fetch the value. But it is implemented with Ruby. If we provide C implementation of that, Rails will gain the performance improvement. summary of previous discussion: https://github.com/rails/rails/pull/40182#issuecomment-687607812 -- https://bugs.ruby-lang.org/ Unsubscribe: