Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-10556

[C++] Caching pre computed data based on FunctionOptions in the kernel state

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • C++
    • None

    Description

      See discussion here:

      https://github.com/apache/arrow/pull/8621#issuecomment-724796243

       

      A kernel might need to pre-compute something based on the function options passed. Since the Kernel-FunctionOptions mapping is not 1-to-1, it does not make sense to store this in the function option object. 

      Currently, match_substring calculates a `prefix_table` on each Exec call. In trim (https://github.com/apache/arrow/pull/8621) we compute a vector<bool> on each Exec call. This should be done only once and cached in the kernel state instead.

       

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              maartenbreddels Maarten Breddels
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated: