Skip to content

Excessive memory allocation #4

@haumacher

Description

@haumacher

Hash computations allocates far to much temporary memory exhausting all system resources and requiring multiple GC runs per hash computation.

A memory profiler easily reports this issue:

argon2-memory-orig

An optimized version is available in the fork https://github.com/haumacher/argon2-java reducing the temporary memory consumption in this example by nearly a factor (!) of 25:

argon2-memory-optimized

Needless to say that the hash computation performance also greatly benefits from this optimization, limiting the overhead of the Java implementation to less than 20% in most cases.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions