You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jun 3, 2023. It is now read-only.
In our Rails application we see Marshaler::Base#find_handler as a hotspot.
The problem is that the method looks up all the inheritance chain for an encoded object:
transit-ruby/lib/transit/marshaler/base.rb
Lines 66 to 73 in b4973f8
We have two bottlenecks:
ancestors
array. That ads up another cycle in the loop.ancestors
array, which is expensive and is not needed for core classesWith AS benchmark
Without AS benchmark
The text was updated successfully, but these errors were encountered: