Skip to content

LinkedHashMap creates enormous amount of memory traffic #3486

Closed
@wilbit

Description

@wilbit

Because of an efficient implementation of Enumerable pattern.
It creates a significant pressure to GC.

Most of the traffic come from boxed KeyValuePair<CollectionEntry, IPersistentCollection> values, but Enumerator also could be made a struct for removing allocations further.

During a startup our application caches a lot of data.
So, the image below is for our case.
image

I work on a fix, check my solution against original using DotNetBenchmark.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions