Commit 0a6ad56
Expand printable lookup table to 256 entries and drop char<127 check
Addresses gemini-code-assist review on PR #30. With a 256-entry table,
non-ASCII bytes (>=127) naturally return False, so the explicit
char < 127 guard in the detect_ascii_len and detect_unicode_len hot
loops becomes redundant. Removing it saves one comparison per loop
iteration on the string-detection hot path.
https://claude.ai/code/session_01PHLmsRuiwBQJ3n7gvR7Aa51 parent 81f799d commit 0a6ad56
1 file changed
Lines changed: 3 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
7 | | - | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
| 68 | + | |
72 | 69 | | |
73 | 70 | | |
74 | 71 | | |
| |||
88 | 85 | | |
89 | 86 | | |
90 | 87 | | |
91 | | - | |
92 | | - | |
| 88 | + | |
93 | 89 | | |
94 | 90 | | |
95 | 91 | | |
| |||
0 commit comments