Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-19008

Avoid boxing/unboxing overhead of calling a lambda with primitive type from Dataset program

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.2.0
    • SQL
    • None

    Description

      In a discussion between cloud_fan and kiszk, we noticed an opportunity to avoid boxing/unboxing overhead when a Dataset program calls a lambda, which operates on a primitive type, written in Scala.
      In such a case, Catalyst can directly call a method <primitiveType> apply(<primitiveType>); instead of Object apply(Object);.

      Of course, the best solution seems to be here.

      Attachments

        Activity

          People

            kiszk Kazuaki Ishizaki
            kiszk Kazuaki Ishizaki
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: