-
Notifications
You must be signed in to change notification settings - Fork 79
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: only parse payload once #921
Conversation
I'd like to wait for others to review as well |
I personally don't feel like this change is needed and really doubt this is an actual bottleneck for probot (if it is, I'd want to see a more detailed breakdown of the benchmarking before making exploring more of these kind of changes). Having said that iirc |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
changes look good to me, just some nits
@wolfy1339 |
🎉 This PR is included in version 12.0.5 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Closes #922
We are parsing the JSON twice. Also it is quite dangerous to parse unverified data. So it is better to first verify and then parse it with the very low risk that it is broken payload.
Improves the performance of the valid path in probot beta from 63 k ops/s to 71 k ops/s.