Answer the question
In order to leave comments, you need to log in
Unmanaged memory allocation in .NET, is it worth it?
Should you allocate memory in unmanaged memory when creating a large object pool? On the one hand, this is better for the garbage collector, because no need to label and clean up a bunch of large objects, but on the other hand, when loading from unmanaged memory, you need to constantly convert to managed objects. And serialization and deserialization every time, if you work through streams using UnmanagetMemoryStream and UnmanagedMemoryAccessor.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question