Commit 92ed485
Hoist lazy import struct to module level in tuples.py
The V1 params tuple encode/decode paths had `import struct` inside
function bodies, unlike every other module that imports struct at the
top level. Hoisted to module level for consistency and to avoid the
sys.modules lookup on every V1 call.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent ae78ad2 commit 92ed485
1 file changed
Lines changed: 1 addition & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
57 | 58 | | |
58 | 59 | | |
59 | 60 | | |
60 | | - | |
61 | | - | |
62 | 61 | | |
63 | 62 | | |
64 | 63 | | |
| |||
120 | 119 | | |
121 | 120 | | |
122 | 121 | | |
123 | | - | |
124 | | - | |
125 | 122 | | |
126 | 123 | | |
127 | 124 | | |
| |||
0 commit comments