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-07-09 14:41:23 +03:00
2020-08-06 15:41:31 +03:00
2018-12-24 09:58:08 +02:00
2018-12-24 09:58:08 +02:00
2020-04-23 16:06:37 +03:00
2020-06-25 15:34:10 -07:00
2020-06-25 15:33:31 -07:00
2018-11-01 13:16:17 +00:00
2020-03-23 11:59:30 +02:00
2020-03-23 09:29:45 +02:00
2020-08-06 15:41:31 +03:00
2020-08-03 15:55:18 +03:00
2020-08-03 15:55:16 +03:00
2020-06-18 14:08:29 +03:00
2019-08-01 18:39:47 +03:00
2020-07-03 12:28:14 -07:00
2018-12-03 14:36:08 +01:00
2020-07-14 16:29:49 +03:00
2020-07-28 18:00:29 +03:00
2020-07-28 18:00:29 +03:00
2020-08-03 12:51:16 +03:00
2020-03-23 09:29:45 +02:00
2020-06-02 09:12:21 +03:00
2019-01-08 13:16:36 +02:00
2020-07-17 17:54:43 +03:00
2020-03-23 09:29:45 +02:00
2020-02-09 17:26:52 +02:00
2020-02-09 17:26:52 +02:00
2020-07-14 16:30:02 +03:00
2020-06-02 09:12:21 +03:00
2020-03-20 19:37:48 +01:00
2020-06-03 14:44:00 +02:00
2020-06-18 14:18:21 +03:00
2020-02-29 19:28:57 +02:00
2020-02-29 19:28:57 +02:00
2020-03-23 09:29:45 +02:00
2019-02-07 18:31:25 +02:00
2019-11-26 02:24:49 +03:00
2020-04-05 12:46:04 +03:00
2019-12-12 17:32:10 +03:00
2020-03-25 08:49:53 +02:00
2020-06-02 09:12:21 +03:00
2020-06-02 09:12:21 +03:00
2020-06-01 09:08:40 +03:00
2020-06-01 09:08:40 +03:00
2020-06-14 08:18:39 -07:00
2020-06-18 14:18:21 +03:00
2018-11-21 00:01:44 +02:00
2018-11-01 13:16:17 +00:00
2019-11-26 02:24:49 +03:00
2020-03-23 09:29:45 +02:00
2020-07-14 16:29:49 +03:00
2020-04-05 12:46:04 +03:00
2020-02-27 09:34:51 -05:00
2020-02-27 09:34:51 -05:00
2020-06-02 09:12:21 +03:00
2020-08-04 17:54:45 +03:00
2020-06-02 09:12:21 +03:00
2020-06-02 09:12:21 +03:00
2020-07-31 15:49:21 +02:00
2020-07-09 14:41:37 +03:00
2020-07-17 11:58:53 +03:00
2019-10-15 15:41:42 +03:00
2020-03-23 09:29:45 +02:00
2020-03-23 09:29:45 +02:00
2020-03-04 12:42:57 +02:00
2020-03-04 12:42:57 +02:00
2020-03-23 09:29:45 +02:00
2020-07-14 16:29:43 +03:00
2018-11-20 16:15:12 +00:00
2020-03-23 09:29:45 +02:00
2020-05-31 12:58:59 +03:00
2019-01-08 13:16:36 +02:00
2020-04-05 12:46:04 +03:00
2020-06-02 09:12:21 +03:00
2020-07-15 08:10:23 +00:00
2020-07-15 08:10:23 +00:00
2020-03-23 11:59:30 +02:00
2020-06-02 09:12:21 +03:00
2020-03-25 08:49:53 +02:00
2020-03-03 21:23:40 +02:00
2020-05-23 11:09:10 +03:00
2018-12-28 16:31:24 +01:00
2020-04-05 12:46:04 +03:00
2020-02-27 18:11:54 +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
2020-01-27 11:09:01 +02:00
2018-11-21 00:01:44 +02:00
2020-01-26 18:54:36 +02:00