Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
3.5.2
Description
In ProjectingInternalRow, the colOrdinals is passed as a List. According to the Scala documentation, the apply method for List has a linear time complexity, and it is used in all methods of ProjectingInternalRow for every row. This can have a significant impact on performance.
The following flame graph was captured in a merge into sql. A considerable amount of time was spent on List.apply. Changing this to IndexedSeq would improve the performance.
https://docs.scala-lang.org/overviews/collections-2.13/performance-characteristics.html
Attachments
Attachments
Issue Links
- links to