Dandandan edited a comment on issue #1041: URL: https://github.com/apache/arrow-datafusion/issues/1041#issuecomment-926412530
@jiangzhx I didn't spot a difference in the two `RUSTFLAGS='-C target-cpu=native' cargo +nightly run --release --features "simd mimalloc" --example ssb_memtable_sum_example` commands you showed. If you do want to do a full comparison I would do: * build with/without `-C target-cpu=native` * build with/without `mimalloc` * build with/without `simd` * build with/without lto (https://arrow.apache.org/datafusion/user-guide/library.html) And combinations of the above. Without `-C target-cpu=native` the compiler only uses instructions until sse2 - by default. There are exceptions to this in Arrow, for summing we compile a version with `avx` enabled too by utilizing `multiversion`: https://github.com/apache/arrow-rs/blob/master/arrow/src/compute/kernels/aggregate.rs#L107 That uses runtime feature detection instead, so is independent of the `target-cpu` setting. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
