You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Matei Zaharia (JIRA)" <ji...@apache.org> on 2014/08/05 09:33:12 UTC

[jira] [Resolved] (SPARK-2685) Update ExternalAppendOnlyMap to avoid buffer.remove()

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

Matei Zaharia resolved SPARK-2685.
----------------------------------

       Resolution: Fixed
    Fix Version/s: 1.1.0

> Update ExternalAppendOnlyMap to avoid buffer.remove()
> -----------------------------------------------------
>
>                 Key: SPARK-2685
>                 URL: https://issues.apache.org/jira/browse/SPARK-2685
>             Project: Spark
>          Issue Type: Sub-task
>          Components: Spark Core
>            Reporter: Matei Zaharia
>            Assignee: Matei Zaharia
>             Fix For: 1.1.0
>
>
> This shifts the whole right side of the array back, which can be expensive. It would be better to just swap the last element into the position we want to remove at, then decrease the size of the array.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

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