My experience using the lib. Inputs for performance improvement
Open
@cebe is already working on this.
Since Mar 23, 2021.
enhancement
needs investigation
- Dominant language
- PHP
- Stars
- 500
- Forks
- 99
- PR merge metrics
- No merged PRs in 30d
Description
First of all, Thanks for this amazing library.
I am using this library and would like to share experience that will give you data when you refactor code to improve performance
- When
$openapiobject is initialised by reading spec file it is taking significant time that can be reduced ($openapi = Reader::readFromJsonFile(realpath('openapi_spec.json'));) - When I
print_ra Schema object (cebe\openapi\spec\Schema) it takes a lot of time, browser crashes sometimes. (Workaround print_r property directlyecho $schema->title) - Above issue also occurs when I try to print other object such as MediaType
- php.ini:
max_execution_time&memory_limitare needed to increase. If possible, changes can be made to be within limit of PHP defaults
Note: I have not done concrete profiling. This are just my primary observation while using the lib
I will share further experiences when I go come across any
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.