Dmitriy Tarasevich
01/11/2024, 5:43 PMfreeCompilerArgs += "-Xallocator=std"
? Our application is very Flow / Coroutine Heavy and we have been having many memory issues using the new memory allocator.
Using the xcode memory profiler it was very easy to get memory usage to reach over 1gig, interestingly, when using the allocator instrument tool the allocations where quite low. When digging into the memory graph I can find thousands of items labeled as VM: Stack Thread
each taking um MB of space.
I just switched to the system allocator, and its damn near impossible to get the app to go over 250mb using the xcode profiler, but when looking at the allocator... there are more items being allocated.
TDLR.... what are the downsides of using the system allocator? and why might the new allocator use up so much memory when utilizing lots of coroutines / flowsDmitriy Tarasevich
01/11/2024, 6:51 PM