Skip to content

Object store rents 128k ends up in LOH #941

@mtmk

Description

@mtmk

Proposed change

When saving (and potentially loading) objects from object store we allocate 128K chunks of memory from array pool for publishing. This would create arrays larger than 85K ending up in LOH. We need to be able to write multiple slices of memory to socket when publishing or read on subscriptions. A memory sequence type can be used for this at least for binary serialization.

Thanks to @MiloszKrajewski for pointing it out.

Use case

Avoid LOH

Contribution

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions