Commit aba6bc34 authored by Seth Brenith's avatar Seth Brenith Committed by Jon Moss
Browse files

http: switch on string values

Long ago, V8 was much faster switching on string lengths than values.
That is no longer the case, so we can simplify a couple of methods.

PR-URL: https://github.com/nodejs/node/pull/18351


Reviewed-By: default avatarJames M Snell <jasnell@gmail.com>
Reviewed-By: default avatarKyle Farnung <kfarnung@microsoft.com>
Reviewed-By: default avatarAnatoli Papirovski <apapirovski@mac.com>
Reviewed-By: default avatarGireesh Punathil <gpunathi@in.ibm.com>
Reviewed-By: default avatarColin Ihrig <cjihrig@gmail.com>
Reviewed-By: default avatarJon Moss <me@jonathanmoss.me>
parent 6c1906ab
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment