Commit f74843a
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 f74843a
1 file changed
Lines changed: 7 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 | + | |
| 123 | + | |
| 124 | + | |
119 | 125 | | |
120 | 126 | | |
121 | 127 | | |
| |||
0 commit comments