Commit 1e76323
n-api: improve performance creating strings
Improve performance creating strings using N-API by ensuring that the
strings are not internalized.
Added test cases for latin-1 and utf-16 strings.
PR-URL: #26439
Fixes: #26437
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Michael Dawson <michael_dawson@ca.ibm.com>
Reviewed-By: James M Snell <jasnell@gmail.com>1 parent eaf474c commit 1e76323
File tree
3 files changed
+55
-6
lines changed- src
- test/addons-napi/test_string
3 files changed
+55
-6
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1993 | 1993 | | |
1994 | 1994 | | |
1995 | 1995 | | |
| 1996 | + | |
| 1997 | + | |
| 1998 | + | |
1996 | 1999 | | |
1997 | 2000 | | |
1998 | 2001 | | |
1999 | 2002 | | |
2000 | 2003 | | |
2001 | | - | |
| 2004 | + | |
2002 | 2005 | | |
2003 | 2006 | | |
2004 | 2007 | | |
| |||
2012 | 2015 | | |
2013 | 2016 | | |
2014 | 2017 | | |
| 2018 | + | |
| 2019 | + | |
| 2020 | + | |
2015 | 2021 | | |
2016 | | - | |
2017 | | - | |
2018 | | - | |
2019 | | - | |
| 2022 | + | |
| 2023 | + | |
| 2024 | + | |
| 2025 | + | |
| 2026 | + | |
| 2027 | + | |
| 2028 | + | |
| 2029 | + | |
2020 | 2030 | | |
2021 | 2031 | | |
2022 | 2032 | | |
| |||
2026 | 2036 | | |
2027 | 2037 | | |
2028 | 2038 | | |
| 2039 | + | |
| 2040 | + | |
| 2041 | + | |
2029 | 2042 | | |
2030 | 2043 | | |
2031 | 2044 | | |
2032 | 2045 | | |
2033 | 2046 | | |
2034 | | - | |
| 2047 | + | |
2035 | 2048 | | |
2036 | 2049 | | |
2037 | 2050 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
73 | 73 | | |
74 | 74 | | |
75 | 75 | | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
215 | 215 | | |
216 | 216 | | |
217 | 217 | | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
| 232 | + | |
| 233 | + | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
218 | 244 | | |
219 | 245 | | |
220 | 246 | | |
| |||
226 | 252 | | |
227 | 253 | | |
228 | 254 | | |
| 255 | + | |
| 256 | + | |
229 | 257 | | |
230 | 258 | | |
231 | 259 | | |
| |||
0 commit comments