Commit bc7ef53
Coerce the column type to int once in encode_row_header
The validation loop called ``int(t)`` twice per column — once for
the nibble-range bound check and again for the
``_VALID_TYPE_CODES`` membership probe. On multi-thousand-column
headers the doubled coercion adds Python-level overhead with no
behavioural benefit. Pull the coercion to a local; both error
diagnostics are preserved.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent 98453d4 commit bc7ef53
1 file changed
Lines changed: 8 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
306 | 306 | | |
307 | 307 | | |
308 | 308 | | |
309 | | - | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
310 | 315 | | |
311 | | - | |
312 | | - | |
| 316 | + | |
| 317 | + | |
313 | 318 | | |
314 | 319 | | |
315 | 320 | | |
| |||
0 commit comments