Commit 69d7900
committed
fix(jina): use crate::simd::F32x16 for Base17 L1 distance hot path
L1 distance between Base17 tokens now uses F32x16:
16 dims via SIMD (load, subtract, abs, reduce_sum)
1 dim scalar remainder (the 17th dimension)
Consumer never sees hardware — F32x16 dispatches via LazyLock
to AVX-512/AVX2/scalar automatically.
12 tests passing.
https://claude.ai/code/session_01Y69Vnw751w75iVSBRws7o71 parent bd5f14e commit 69d7900
1 file changed
Lines changed: 19 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
51 | 54 | | |
52 | 55 | | |
53 | | - | |
54 | | - | |
55 | | - | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
56 | 63 | | |
57 | | - | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
58 | 73 | | |
59 | 74 | | |
60 | 75 | | |
| |||
0 commit comments