-
-
Notifications
You must be signed in to change notification settings - Fork 233
Latest 9.0.7 seems to introduce indirect performance issues #211
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
Comments
Hey! |
@P0lip Thanks for the feedback!
I've currently set my
I'd be happy to test this. However, I'm not sure to know the proper syntax in order to tweak the resolution so that it resolves to an entirely different package though. How should I do this? |
"resolutions": {
"@stoplight/prism-cli/json-schema-ref-parser": "stoplightio/json-schema-ref-parser"
} this should work, I think. |
@P0lip Thanks. That didn't seem to help With With I'll try to work on a repro case and submit it today. |
Done. See https://github.com/nulltoken/json-schema-ref-parser-repro-case Note: As the processed endpoints are very basic, the difference in time isn't as significative as shown above, but still relevant enough to showcase the issue. First GitHub action workflow run (https://github.com/nulltoken/json-schema-ref-parser-repro-case/runs/1805714126?check_suite_focus=true)
Second GitHub action workflow run (https://github.com/nulltoken/json-schema-ref-parser-repro-case/runs/1805736569?check_suite_focus=true)
|
Thanks a lot! |
@nulltoken, I put together a candidate fix for the issue. Could you test the commit above? |
@P0lip Wow! Thanks a lot for that.
Would you know if the yarn resolution mechanism would allow me to directly point at that commit? |
does the following work? LMK. If so, what's the result on your end? |
@P0lip This fix works awesomely! Below what I'm seeing now when dealing with the initial use case:
|
Nice, glad to hear that! |
Hey! Would you have any ETA for a new release of the upstream package? |
Hey, I have no ETA at the moment, but it's been a while since the last release, so you can expect a new one soon! |
@P0lip And how soon would be "soon"? ;-) |
@P0lip Kind bump? |
GitHub Actions have been broken for quite some time, and despite me thinking I'd fixed them, they're back to being broken. This stops release from working. https://github.com/APIDevTools/json-schema-ref-parser/actions If you can spot the cause let me know, I have had a few gos but am currently stumped (and off sick). |
Got it! @nulltoken let me know if 9.0.8 is working a little quicker. |
@philsturgeon You're my hero 😍 |
👋
While upgrading some indirect dependencies, we've bumped into some performance regressions.
Running time
getHttpOperationsFromSpec
(from prism-cli) against the same large(15Mb+) openapi 3.x document, exposing 750+ endpoints, shows a great difference in execution duration, depending on the underlyingjson-schema-ref-parser
version.I can consistently repro this on my side. Have you noticed a similar behavior on your side? Wouldn't that be the case, I could try and build up a repro case.
/cc @P0lip @XVincentX
The text was updated successfully, but these errors were encountered: