Skip to content

win32/manifest: use the Segment Heap allocator on newer Windows

Steve Lhomme requested to merge robUx4/vlc:win-heap-alloc into master

It's supposed to be a better allocator than the default/legacy one [1]:

The value SegmentHeap indicates that segment heap will be used. Segment heap is a modern heap implementation that will generally reduce your overall memory usage. This element is supported in Windows 10, version 2004 (build 19041) and later.

On my usual test file (hardware decoding, dummy UI) I get from 266.1 Mo of memory usage to 264.4 Mo (-0.6%). The results are consistent between runs.

[1] https://learn.microsoft.com/en-us/windows/win32/sbscs/application-manifests#heaptype

Merge request reports

Loading