Files
scylladb/utils
Pavel Emelyanov 7c20e3ed05 utils: AVX searcher
With all the preparations made so far it's now possible to implement
the avx-powered search in an array.

The array to search in has both -- capacity and size, so searching in
it needs to take allocated, but unused tail into account. Two options
for that -- limit the number of comparisons "by hands" or keep minimal
and impossible value in this tail, scan "capacity" elements, then
correct the result with "size" value. The latter approach is up to 50%
faster than any (tried) attempt to do the former one.

The run-time selection of the array search code is done with the gnu
target attribute. It's available since gcc 4.8. For AVX-less platforms
the default linear scanner is used.

Signed-off-by: Pavel Emelyanov <xemul@scylladb.com>
2020-08-06 15:41:31 +03:00
..
2020-01-30 14:10:18 +02:00
2020-08-06 15:41:31 +03:00
2020-03-23 11:59:30 +02:00
2020-08-03 15:55:16 +03:00
2018-12-03 14:36:08 +01:00
2020-03-20 19:37:48 +01:00
2018-11-21 00:01:44 +02:00
2020-08-04 17:54:45 +03:00
2020-05-31 12:58:59 +03:00
2020-03-23 11:59:30 +02:00
2018-12-05 21:51:01 +02:00
2018-12-05 21:51:01 +02:00
2019-02-20 08:03:46 -08:00
2018-11-21 00:01:44 +02:00
2020-01-26 18:54:36 +02:00