Commit 1b28547
committed
perf: SIMD sign_agreement + xor_bind via I32x16, target-cpu=native
All Base17 hot-path ops now SIMD:
l1() → I32x16 sub + abs + reduce_sum
l1_weighted() → I32x16 sub + abs + mul + reduce_sum
sign_agreement() → I32x16 xor + simd_min + count
xor_bind() → I32x16 xor
.cargo/config.toml: target-cpu=native (not x86-64-v4)
→ GitHub CI gets AVX2/SSE4.2 fallback automatically
→ Local dev gets AVX-512 if available
→ cfg(target_feature = "avx512f") handles compile-time dispatch
728M lookups/sec, 22K tokens/sec. 19 tests passing.
https://claude.ai/code/session_01M3at4EuHVvQ8S95mSnKgtK1 parent 66ddd24 commit 1b28547
2 files changed
Lines changed: 49 additions & 17 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
169 | | - | |
| 169 | + | |
170 | 170 | | |
171 | 171 | | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
176 | 195 | | |
| 196 | + | |
177 | 197 | | |
178 | | - | |
179 | 198 | | |
180 | 199 | | |
181 | | - | |
182 | | - | |
183 | | - | |
| 200 | + | |
184 | 201 | | |
185 | | - | |
186 | 202 | | |
187 | 203 | | |
188 | | - | |
189 | | - | |
190 | | - | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
191 | 222 | | |
192 | | - | |
193 | 223 | | |
194 | 224 | | |
195 | 225 | | |
| |||
0 commit comments