Commit 58cd76c
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 58cd76cCopy full SHA for 58cd76c
File tree
Expand file treeCollapse file tree
1 file changed
+6
-10
lines changedOpen diff view settings
Filter options
- lib/internal/util
Expand file treeCollapse file tree
1 file changed
+6
-10
lines changedOpen diff view settings
Collapse file
lib/internal/util/inspect.js
Copy file name to clipboardExpand all lines: lib/internal/util/inspect.js+6-10Lines changed: 6 additions & 10 deletions
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| ||
1953 | 1953 | |
1954 | 1954 | |
1955 | 1955 | |
1956 | | - |
1957 | | - |
1958 | | - |
1959 | | - |
1960 | | - |
1961 | | - |
1962 | | - |
1963 | 1956 | |
1964 | 1957 | |
1965 | 1958 | |
| ||
1970 | 1963 | |
1971 | 1964 | |
1972 | 1965 | |
1973 | | - |
| 1966 | + |
| 1967 | + |
1974 | 1968 | |
1975 | 1969 | |
1976 | 1970 | |
1977 | 1971 | |
1978 | 1972 | |
1979 | | - |
| 1973 | + |
1980 | 1974 | |
1981 | 1975 | |
1982 | 1976 | |
| ||
1990 | 1984 | |
1991 | 1985 | |
1992 | 1986 | |
1993 | | - |
| 1987 | + |
| 1988 | + |
| 1989 | + |
1994 | 1990 | |
1995 | 1991 | |
1996 | 1992 | |
|
0 commit comments