Commit cc14a65
committed
Feature - HNSW refactor - vector blocks - [MOD-5302] (#397)
* HNSW refactor 3 - [MOD-5302] (#389)
* moved vector_block
* make DataBlock available to use in vectors
* some general improvements
* implement data blocks in HNSW
* disabled serializer benchmarks and some tests
* more disable
* enabled serialization (for current implementation)
* added prefetch for range
* move generic meta of element to a separated vector
* added prefetch for metadata
* enabled save and load from bindings
* [TMP] return of the old HNSW
REVERT ME
* fix bm
* some changes in prefetch
* shortened BM
* reverted prefetches to by as before
* shorten BM
* small improvement for range
* packing structs
* unrelated performance improvement
* fix
* revert adding origin hnsw,
remove support for v1 and v2 serialization
* update for BM file
* some fixes and test updates
* [TEMP] disable 2 tests so coverage will run
* fix flow test
* more test fixes
* improved tests
* fix for bach iterator scan (needs a benchmark)
* for benchmark
* reverting some temporary changes
* more reverting
* fix for clang
* file name update
* another prefetch option
* few improvements
* some more trying
* final change
* another update to all but `hnsw.h`
* returned `increaseCapacity` responsibility to `addVector`
* make `hnsw.h` use blocks
* BF comment fix
* comment fix
* fix some tests
* fixed hnsw tests
* fixed hnsw-multi tests
* fixed almost all tiered HNSW tests
* Fix memory bookkeeping tests
* Fix memory bookkeeping tests 2
* fixed estimations and their tests
* review fixes
* fix review fix
* more review fixes
* move rounding up of initial capacity to a static function
* added comments on data blocks
* some optimizations (reduce the use of `getDataByInternalId`)
---------
Co-authored-by: alon <alonreshef24@gmail.com>
* HNSW blocks refactor - add lock to graph data struct (#390)
* Improved serializing code - [MOD-5372] (#391)
* improved serializing code
* review fixes
* HNSW Refactor - benchmarks - [MOD-5371] (#392)
* update benchmark files
* updated wget links
* publish serialization script
* another benchmark cleanup iteration
* review fixes
* Renaming "meta" variables (#394)
* renaming "meta" variables
* revert temp change
* Optimize Distance Functions - [MOD-5434] (#395)
* initial templated with masks implementations
* format
* tidy up
* enabled spaces tests back
* changed template type and handle residual first
* re-enabled benchmarks (keeping old names)
* download fix
* improved unit testing
* improved spaces benchmarks
* verify correctness
* some cleanup
* give up optimizing dim<16 for safety
* aligned serialization links
* added lots of comments
* added a test and small fix
* include opts only on x86 machines
* remove AVX512DQ references from the project (not in use)
* rename qty to dimension
* Update AVX_utils.h comments
* Optimize - implement align allocation for vector alignment - [MOD-5433] (#399)
* aligning query vector
* implement aligned allocation
* added alignment hing to VecSimIndexAbstract, used it in block allocation
* test fix
* review fixes
* set default value to the alignment hint (1 - any address is valid)
* refactor allocation header to have alignment flag, unify free function
* use alignment only on vector blocks
* changed default alignment value (0)
* updated tests
* added missing break
* improved comment
* removed alignment from allocator test1 parent 07ad5f4 commit cc14a65
File tree
124 files changed
+3223
-4352
lines changed- src
- VecSim
- algorithms
- brute_force
- hnsw
- index_factories
- memory
- spaces
- IP
- L2
- utils
- python_bindings
- tests
- benchmark
- data
- hnsw_indices
- run_files
- spaces_benchmarks
- unit
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
124 files changed
+3223
-4352
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
| 16 | + | |
16 | 17 | | |
17 | 18 | | |
18 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
92 | 92 | | |
93 | 93 | | |
94 | 94 | | |
95 | | - | |
96 | | - | |
| 95 | + | |
| 96 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
23 | 22 | | |
24 | 23 | | |
25 | 24 | | |
26 | 25 | | |
27 | 26 | | |
28 | 27 | | |
29 | 28 | | |
| 29 | + | |
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
26 | 26 | | |
27 | 27 | | |
28 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| |||
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
32 | | - | |
| 32 | + | |
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | | - | |
| 40 | + | |
42 | 41 | | |
43 | 42 | | |
44 | 43 | | |
45 | | - | |
| 44 | + | |
46 | 45 | | |
47 | 46 | | |
48 | 47 | | |
| |||
56 | 55 | | |
57 | 56 | | |
58 | 57 | | |
59 | | - | |
| 58 | + | |
60 | 59 | | |
61 | 60 | | |
62 | 61 | | |
| |||
72 | 71 | | |
73 | 72 | | |
74 | 73 | | |
75 | | - | |
| 74 | + | |
76 | 75 | | |
77 | 76 | | |
78 | 77 | | |
| |||
93 | 92 | | |
94 | 93 | | |
95 | 94 | | |
96 | | - | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
97 | 119 | | |
98 | 120 | | |
99 | 121 | | |
| |||
111 | 133 | | |
112 | 134 | | |
113 | 135 | | |
| 136 | + | |
114 | 137 | | |
115 | 138 | | |
116 | 139 | | |
| |||
129 | 152 | | |
130 | 153 | | |
131 | 154 | | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
140 | 159 | | |
141 | 160 | | |
142 | 161 | | |
143 | 162 | | |
144 | 163 | | |
145 | 164 | | |
146 | | - | |
147 | 165 | | |
148 | 166 | | |
149 | 167 | | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
156 | 177 | | |
157 | | - | |
158 | | - | |
159 | | - | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
160 | 181 | | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
| 182 | + | |
| 183 | + | |
167 | 184 | | |
168 | 185 | | |
169 | 186 | | |
| |||
180 | 197 | | |
181 | 198 | | |
182 | 199 | | |
183 | | - | |
184 | | - | |
| 200 | + | |
| 201 | + | |
185 | 202 | | |
186 | | - | |
| 203 | + | |
187 | 204 | | |
188 | 205 | | |
189 | 206 | | |
| |||
198 | 215 | | |
199 | 216 | | |
200 | 217 | | |
201 | | - | |
| 218 | + | |
202 | 219 | | |
203 | 220 | | |
204 | 221 | | |
205 | | - | |
| 222 | + | |
206 | 223 | | |
207 | 224 | | |
208 | 225 | | |
209 | | - | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
215 | | - | |
216 | | - | |
217 | | - | |
218 | | - | |
219 | | - | |
220 | | - | |
221 | | - | |
| 226 | + | |
| 227 | + | |
222 | 228 | | |
223 | 229 | | |
224 | 230 | | |
| |||
229 | 235 | | |
230 | 236 | | |
231 | 237 | | |
232 | | - | |
233 | | - | |
234 | | - | |
235 | | - | |
236 | | - | |
237 | | - | |
238 | | - | |
239 | | - | |
240 | | - | |
| 238 | + | |
241 | 239 | | |
242 | 240 | | |
243 | 241 | | |
244 | 242 | | |
245 | | - | |
246 | | - | |
247 | | - | |
| 243 | + | |
| 244 | + | |
| 245 | + | |
| 246 | + | |
| 247 | + | |
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
253 | 253 | | |
254 | | - | |
| 254 | + | |
255 | 255 | | |
256 | 256 | | |
257 | 257 | | |
| |||
264 | 264 | | |
265 | 265 | | |
266 | 266 | | |
267 | | - | |
| 267 | + | |
268 | 268 | | |
269 | 269 | | |
270 | 270 | | |
| |||
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
279 | | - | |
| 279 | + | |
280 | 280 | | |
281 | 281 | | |
282 | 282 | | |
| |||
314 | 314 | | |
315 | 315 | | |
316 | 316 | | |
317 | | - | |
| 317 | + | |
318 | 318 | | |
319 | 319 | | |
320 | 320 | | |
| |||
323 | 323 | | |
324 | 324 | | |
325 | 325 | | |
326 | | - | |
| 326 | + | |
327 | 327 | | |
328 | 328 | | |
329 | 329 | | |
| |||
458 | 458 | | |
459 | 459 | | |
460 | 460 | | |
461 | | - | |
| 461 | + | |
462 | 462 | | |
463 | 463 | | |
464 | 464 | | |
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| 20 | + | |
20 | 21 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
59 | 63 | | |
60 | 64 | | |
61 | 65 | | |
| |||
198 | 202 | | |
199 | 203 | | |
200 | 204 | | |
201 | | - | |
| 205 | + | |
202 | 206 | | |
203 | 207 | | |
204 | 208 | | |
| |||
0 commit comments