You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@daffodil.apache.org by "Mike Beckerle (Jira)" <ji...@apache.org> on 2021/01/07 20:11:00 UTC

[jira] [Closed] (DAFFODIL-1449) Performance: Use Java HashMap, not Scala HashMap, which allocates constantly.

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

Mike Beckerle closed DAFFODIL-1449.
-----------------------------------
    Resolution: Not A Problem

Need profiling before making performance changes.

> Performance: Use Java HashMap, not Scala HashMap, which allocates constantly.
> -----------------------------------------------------------------------------
>
>                 Key: DAFFODIL-1449
>                 URL: https://issues.apache.org/jira/browse/DAFFODIL-1449
>             Project: Daffodil
>          Issue Type: Improvement
>          Components: Back End, Performance
>    Affects Versions: 1.1.0
>            Reporter: Mike Beckerle
>            Priority: Major
>
> Scala's mutable HashMap allocates a Some[T] object for every successful get(key) call.
> This is unacceptable overhead for something done so frequently.
> Use Java's HashMap instead, where get(key) returns a value or null, and never allocates anything.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)