Commit c8fbf51
committed
perf: optimize sanitise_LinkTable string loop
Eliminate O(N^2) overhead in sanitise_LinkTable by replacing
strlen() with a null-terminator check in the loop condition.
Co-authored-by: fangfufu <2323403+fangfufu@users.noreply.github.com>1 parent 26db6fc commit c8fbf51
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
319 | 319 | | |
320 | 320 | | |
321 | 321 | | |
322 | | - | |
| 322 | + | |
323 | 323 | | |
324 | 324 | | |
325 | 325 | | |
| |||
0 commit comments