Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Avoid dynamic constant get on SET.symbols
Dynamic constant lookups (ie. x::SOME_CONST) are uncommon and slightly slow operations (not _that_ slow). We know that the ::SET constant won't change (this is a private API and it is called only with our own classes) so we can switch this to an attr_reader for fast access on the call to delgate_to. This also removes the unused `type_klass` attr_accessor.
- Loading branch information