Commit 2e88bca
committed
string.c: don't create a frozen copy for str_new_shared
str_new_shared already has all the necessary logic to do this
and is also smart enough to skip this step if the source string
is already a shared string itself.
This saves a useless String allocation on each call.1 parent 5b03964 commit 2e88bca
1 file changed
+2
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2923 | 2923 | | |
2924 | 2924 | | |
2925 | 2925 | | |
2926 | | - | |
2927 | | - | |
| 2926 | + | |
2928 | 2927 | | |
2929 | 2928 | | |
2930 | 2929 | | |
| |||
6162 | 6161 | | |
6163 | 6162 | | |
6164 | 6163 | | |
6165 | | - | |
6166 | | - | |
| 6164 | + | |
6167 | 6165 | | |
6168 | 6166 | | |
6169 | 6167 | | |
| |||
0 commit comments