Skip to content

Default app.manifest should include <heapType>SegmentHeap</heapType> #43611

Open
dotnet/roslyn
#75199

Description

Describe the bug

While it doesn't effect managed code if you are using any native allocator from a 3rd party lib (e.g. use RocksDB for example); then the allocator will degrade terribly over time and become a performance bottleneck.

Windows 10, version 2004 (build 19041) and later support a new allocator that doesn't suffer from this issues https://learn.microsoft.com/en-us/windows/win32/sbscs/application-manifests#heaptype

However it needs to be specified in the app.manifest which by default .NET isn't doing.

This can be manually overwritten eg. NethermindEth/nethermind#7418 but should be on this fast path by default.

To Reproduce

Build a .NET exe on Windows this field is not included in the manifest

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions