Skip to content

Perf optimize cookie value validation#285

Open
blakeembrey wants to merge 1 commit into
masterfrom
be/skip-validation-default-encoder
Open

Perf optimize cookie value validation#285
blakeembrey wants to merge 1 commit into
masterfrom
be/skip-validation-default-encoder

Conversation

@blakeembrey

Copy link
Copy Markdown
Member

Tweak encoder regex to be a negative class match (benchmark is slightly faster, but marginal, could undo if someone really disagrees) and skips validation of the value entirely when using the default encoder since it's already known valid.

@blakeembrey blakeembrey force-pushed the be/skip-validation-default-encoder branch from a7aa0f0 to 2824b73 Compare July 8, 2026 18:36
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.

1 participant