Uploaded image for project: 'IMPALA'
  1. IMPALA
  2. IMPALA-11504

Speed up Decimal16Value division by specializing DecimalUtil::GetScaleMultiplier<int256_t>()

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • Impala 4.2.0
    • None
    • None
    • ghx-label-9

    Description

      There exists a call chain:

      DecimalValue<int128_t>::Divide() -> 
      DecimalUtil::MultiplyByScale<int256_t>() ->
      DecimalUtil::GetScaleMultiplier()

      but decimal-util.h didn't specialize DecimalUtil::GetScaleMultiplier<int256_t>(), causing more performance loss.

      Attachments

        Activity

          People

            yx91490 XiangYang
            yx91490 XiangYang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: