Skip to content
Snippets Groups Projects
Commit 0ecbdeb0 authored by Steve Lhomme's avatar Steve Lhomme
Browse files

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

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
parent 9e107ac6
No related branches found
No related tags found
1 merge request!6088win32/manifest: use the Segment Heap allocator on newer Windows
Pipeline #518627 canceled with stage
in 49 minutes and 51 seconds
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3">
<assemblyIdentity
version="1.0.0.0"
processorArchitecture="*"
......@@ -7,7 +7,7 @@
type="win32"
/>
<description>see https://www.videolan.org/</description>
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
<security>
<requestedPrivileges>
<requestedExecutionLevel level="asInvoker" />
......@@ -36,4 +36,9 @@
<supportedOS Id="{1f676c76-80e1-4239-95bb-83d0f6d0da78}"/>
</application>
</compatibility>
<asmv3:application>
<asmv3:windowsSettings xmlns="http://schemas.microsoft.com/SMI/2020/WindowsSettings">
<heapType>SegmentHeap</heapType>
</asmv3:windowsSettings>
</asmv3:application>
</assembly>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment