Skip to content

perf: centralised ajv validators for performance #264

@tim-hm

Description

@tim-hm

Created from inline TODO.

It is likely that creating an Ajv instance on every request, and then loading formats and coercions, is costly. These ajv instances should probably be loaded as app bindings (src/env.ts) and then accessed via context.

Original location(s)

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