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
We updated omniauth gem from version 1.3.2 to 1.5.0. We noticed a weird increment on our rack Middleware. Our monitoring software showed us a call to OmniAuth::Builder#call that took in average 6.37ms, which is more than all our previous middleware times.
We tried different configurations of the gems omniauth and hashie:
hashie: 3.5.3, 3.4.6
omniauth: 1.3.2, 1.4.2, 1.5.0
and the most updated match that worked for us was omniauth 1.4.2 with hashie 3.4.6 (now OmniAuth::Builder#call takes around 1.8ms).
Apologies on the delay. You're absolutely right and it does appear to be hashie. I'm sitting on 1.6.0, I'll release that now with looser hashie requirement allowing you to define 3.4.6 in your Gemfile.
I tracked down the performance regression. It was me being silly and doing a methods.include? instead of a respond_to? to detect whether a key collided with a method. You can see the fix at hashie/hashie#411.
@tmilewski I wanted to give you a heads up that we're slightly modifying the way that we're looking up collisions in hashie/hashie#415. I did some performance testing, which you can see on that issue, and it looks like it won't affect OmniAuth performance. We're trying our best to do our due diligence!
Activity
tmilewski commentedon Feb 16, 2017
I'm happy to look into this but would you mind providing more information per the ISSUE_TEMPLATE? https://github.com/omniauth/omniauth/blob/master/.github/ISSUE_TEMPLATE.md
TeamNautilus commentedon Feb 16, 2017
Hi
Configuration
ruby-version:
providers:
framework:
Expected Behavior
method OmniAuth::Builder#call should take around 1.8ms as for previous version (ominauth 1.4.2 with hashie 3.4.6)
Actual Behavior
method OmniAuth::Builder#call takes in average 6.37ms with ominauth 1.5.0
if you need more info please tell us.
Thank you!
tmilewski commentedon Feb 17, 2017
Apologies on the delay. You're absolutely right and it does appear to be
hashie. I'm sitting on1.6.0, I'll release that now with looserhashierequirement allowing you to define3.4.6in your Gemfile.3.4.6
3.5.3
tmilewski commentedon Feb 17, 2017
@michaelherold Just wanted to make you aware of this. I'll try and dig in more later. I've just been pretty slammed at work. Thanks!
tmilewski commentedon Feb 17, 2017
@TeamNautilus
1.6.0has been pushed to Rubygems.https://github.com/omniauth/omniauth/releases/tag/v1.6.0
Thanks!
michaelherold commentedon Feb 18, 2017
Thanks for pinging me @tmilewski - we'll look into it.
michaelherold commentedon Feb 18, 2017
I tracked down the performance regression. It was me being silly and doing a
methods.include?instead of arespond_to?to detect whether a key collided with a method. You can see the fix at hashie/hashie#411.tmilewski commentedon Feb 18, 2017
@michaelherold Thanks! For reference:
3.5.4
TeamNautilus commentedon Feb 21, 2017
Hi all.
We were able to try your changes and we wanted to let you know that the problem seem to be solved on our side.
We just wanted to thank you all, both for the solution and the quickness of the fix.
Good work guys!
michaelherold commentedon Feb 21, 2017
Thanks for checking back in @TeamNautilus - it's always good to hear when things go well! 😄
michaelherold commentedon Feb 24, 2017
@tmilewski I wanted to give you a heads up that we're slightly modifying the way that we're looking up collisions in hashie/hashie#415. I did some performance testing, which you can see on that issue, and it looks like it won't affect OmniAuth performance. We're trying our best to do our due diligence!