-
Notifications
You must be signed in to change notification settings - Fork 360
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
[prism-cli] getHttpOperationsFromSpec performance regression #1860
Comments
@nulltoken we probably won't be able to get to this for a few sprints as we're trying to finish up another release. However, if you need this sooner, we welcome PRs! |
@chohmann Sadly, I'm not sure I've got the magic dust that @P0lip sprinkles around when he flaps his wings 😜
Fine by me, provided you keep this one on your radar. Deal? |
…sion fix: fixed #1860 performance regression
Describe the bug
Following APIDevTools/json-schema-ref-parser#211 by the amazing @P0lip everything was neat and nice running Prism 4.1.2.
We recently tried to bump to 4.3.1 but discovered a similar performance regression while running
getHttpOperationsFromSpec()
To Reproduce
A complete standalone repro case is available at https://github.com/nulltoken/prism_repro
Running
yarn repro
againstExpected behavior
Jumping from 330ms to 27s when processing the same file looks a bit much, doesn't it? 😉
Getting back to 330ms would be great.
And maybe adding a unit test to protect this method from suffering from new potential performance related regressions in the future ?
/cc @chohmann
The text was updated successfully, but these errors were encountered: