Skip to content

Performance: Avoid re-computing tree hashes #67

@ranocha

Description

@ranocha

Code such as

series[t] = series_integrator[t]

or
series[t] += series_ex[t] - substitute(series, series_integrator, t)

basically computes the hash of the tree t twice. Sadly, there is no stable Base API functionality to avoid this, see https://discourse.julialang.org/t/document-export-ht-keyindex-from-dict-jl/83738 and JuliaLang/julia#33758.
It may be worth checking https://github.com/andyferris/Dictionaries.jl as an alternative.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions