Skip to content

League\OpenAPIValidation\Schema\SchemaValidator::validate latency multiplies on every call on response validator #242

Open
@mpviau

Description

@mpviau

Hi,

I don't have much details regarding the exact cause, and I'd appreciate your help identifying it. We have a service running on OpenSwoole, and we are seeing requests becoming slower and slower as more requests are coming in. Every single time we need to validate a response, it adds more lag than the previous validation.

I traced down the source to something happening in League\OpenAPIValidation\Schema\SchemaValidator::validate, called from BodyValidator.

I suspect something stateful somewhere. I will provide more details as I find out more.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions