[ 
https://issues.apache.org/jira/browse/SPARK-46328?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dongjoon Hyun updated SPARK-46328:
----------------------------------
    Affects Version/s: 4.0.0
                           (was: 3.5.0)

> Allocate capacity of array list of TColumns by columns size in TRowSet 
> generation
> ---------------------------------------------------------------------------------
>
>                 Key: SPARK-46328
>                 URL: https://issues.apache.org/jira/browse/SPARK-46328
>             Project: Spark
>          Issue Type: Improvement
>          Components: Spark Core
>    Affects Versions: 4.0.0
>            Reporter: Bowen Liang
>            Priority: Minor
>              Labels: pull-request-available
>
> Background:
> ArrayList is created for TColumn value collections in RowSetUtils for TRowSet 
> generation. Currently, they are created with Java's default capacity of 16, 
> rather than by the number of columns, which could cause array copying in 
> assembling each TColumn collections when the column number exceeds the 
> default capacity.
>  
> Suggested solution:
> Allocate enough capacity by columns size for assembling array list of 
> TColumns in TRowSet generation.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@spark.apache.org
For additional commands, e-mail: issues-h...@spark.apache.org

Reply via email to