Hello,
During the tests I found that results extraction takes more time than processing:
$ ./bin/dax-in-range -100 100
Reading Data from file...
9.773611 seconds to load 50000000 integers from text file using provided user-friendly DAX library
8.261431 seconds to load 50000000 integers from text file using fscanf()
0.045509 seconds to find numbers between -100 and 100 using DAX. There are 5 such numbers
0.241056 seconds to find numbers between -100 and 100 using C-cycle. There are 5 such numbers
83
29
73
47
87
0.049652 seconds to display results using DAX.
83
29
73
47
87
0.000033 seconds to display results from array.
$
Is it consequence of vector_extract() implementation in vector.so or the DAX need to do hard work to extract already processed data?
And the second question - according to "busstat -w dax" output only 8 of 32 DAX engines are used while processing request. Is it possible to utilize more than 8 DAX engines by one request?