Commit 39a90d6
committed
Use strlen() for numeric and alphanumeric modes to avoid iconv overhead
For NUMERIC and ALPHANUMERIC modes, strlen() is sufficient since these modes only
operate on single-byte characters. strlen() runs in O(1) time and avoids the
overhead of iconv_strlen().1 parent a7e2d7b commit 39a90d6
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | | - | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
119 | 123 | | |
120 | 124 | | |
121 | 125 | | |
| |||
0 commit comments