Skip to content

perf: Remove double-stringify in setCookie#2980

Merged
KhafraDev merged 2 commits intonodejs:mainfrom
peterver:main
Mar 22, 2024
Merged

perf: Remove double-stringify in setCookie#2980
KhafraDev merged 2 commits intonodejs:mainfrom
peterver:main

Conversation

@peterver
Copy link
Copy Markdown
Contributor

This relates to...

Was perusing the code and spotted a double call to 'stringify' in setCookie

Rationale

Didn't seem logical to run stringify multiple times on the same value as this might be an expensive operation behind the scenes.

Changes

Removed the additional call to stringify

Features

N/A

Bug Fixes

N/A

Breaking Changes and Deprecations

N/A

Status

Loading
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.

5 participants