Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Minimize object creation on middleware call. #774
This patch isn't nearly as invasive as #773. Also it was tested against itself, not in a full Rails app. I'm contributing the perf scripts I wrote in another PR.
Notice that by memoizing methods, not only are we reducing objects created in omniauth, but also in hashie due to fewer method calls to various omniauth options.
100 requests without patch
100 requests with patch