util: improve getStringWidth performance · nodejs/node@58cd76c · GitHub
Skip to content

Commit 58cd76c

Browse files
BridgeARaddaleax
authored andcommitted
util: improve getStringWidth performance
This makes sure the common path does not normalize the input string. It's only required for characters that are outside of the ASCII range. Signed-off-by: Ruben Bridgewater <ruben@bridgewater.de> PR-URL: #33674 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>
1 parent 39dea8f commit 58cd76c

1 file changed

Lines changed: 6 additions & 10 deletions

File tree

lib/internal/util/inspect.js

Lines changed: 6 additions & 10 deletions

0 commit comments

Comments
 (0)