You've already forked UnrealEngineUWP
mirror of
https://github.com/izzy2lost/UnrealEngineUWP.git
synced 2026-03-26 18:15:20 -07:00
Memory improvements on top of performance improvements in 11535961. Allow the hash allocation to shrink for calls to Empty(), Shrink(), Compact() and CompactStable(). Let TSparseArray::Compact() shrink the data array just as for Shrink() and CompactStable(). Note: The private function TSet::ShouldRehash() is only called from Empty() and ConditionalRehash(), and ConditionalRehash() with bAllowShrinking=true is only called from Relax() via Shrink(), so there should be no impact on other/growth scenarios. Modify GetAllocatedSize() for TSet, TMap and TSparseArray to only return any dynamically allocated size from the underlying allocators and change return type from uint32 to SIZE_T (just as for TArray and FContainerAllocatorInterface). #rb johan.torp,steve.robb #preflight 634952f4ce524ed356dafde7, 63496f80f622f6c4bb1c0321, 634d65df9c29024c982ecf26 [CL 22595144 by pj kack in ue5-main branch]