Skip to content

Conversation

@marcelthole
Copy link
Owner

This will reduce the time for loading over 1500 Spec files from 2 minutes to 1 second.

new - fixtures contains 1500 files

/var/www # time php bin/openapi-merge fixtures/api.openapi.json --resolve-references=0 -- $(find fixtures/ -type f -iname '*.openapi.json' | xargs) > /dev/null
real    0m 0.86s
user    0m 0.67s
sys     0m 0.18s

old - fixtures contains 1500 files

/var/www # time php bin/openapi-merge fixtures/api.openapi.json --resolve-references=0 -- $(find fixtures/ -type f -iname '*.openapi.json' | xargs) > /dev/null
real    2m 2.03s
user    2m 0.82s
sys     0m 1.16s

…ec by reference. This will reduce the time for loading over 1500 Spec files from 2 minutes to 1 second
@marcelthole marcelthole merged commit eaa10fb into main Mar 21, 2025
7 checks passed
@marcelthole marcelthole deleted the improve-merge-perfomance branch March 21, 2025 14:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants