Commit 14a0c08
authored
tree data common OPTIMIZE use strnlen (#2346)
Using strlen() on large strings (large imported data) is extremely
inefficient. The ly_time_str2time() only needs to check that the string
is at least as long as a valid time value.
However, the full value string can be very long (even > 10MB),
and evaluating strlen() for every time value results in poor performance.1 parent c8cd825 commit 14a0c08
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1670 | 1670 | | |
1671 | 1671 | | |
1672 | 1672 | | |
1673 | | - | |
| 1673 | + | |
1674 | 1674 | | |
1675 | 1675 | | |
1676 | 1676 | | |
| |||
0 commit comments