mirror of
https://github.com/apache/impala.git
synced 2025-12-30 03:01:44 -05:00
Using ldexp() to compute a floating point power of two is over 10x faster than powf(). This change is particularly helpful for speeding up COMPUTE STATS TABLESAMPLE which has many calls to HllFinalEstimate() where floating point power of two computations are relevant. Testing: - core/hdfs run passed Change-Id: I517614d3f9cf1cf56b15a173c3cfe76e0f2e0382 Reviewed-on: http://gerrit.cloudera.org:8080/9078 Reviewed-by: Alex Behm <alex.behm@cloudera.com> Tested-by: Impala Public Jenkins