"The goal is to avoid garbage collection in order to use any processor during a critical process."
Q: If it’s critical in time, do you mean that you are listening to some esoteric piece of hardware and you cannot afford to skip the interrupt?
A: If so, C # is not a used language, for this you need Assembler, C or C ++.
Q: If by Critical time you mean that there are a lot of messages in the pipe, and you do not want the garbage collector to slow down?
A: If you are so worried. By the sounds of things that your objects are very short-lived, this means that the garbage collector will recycle them very quickly without any noticeable performance lag.
However, the only way to know for sure is to check it, configure it to start nightly processing a constant stream of test messages, I will be stunned if you can find out the performance statistics when the GC starts up (and even if you notice this, I will be even more surprised if it really matters).
Binary Worrier Feb 09 '09 at 17:09 2009-02-09 17:09
source share