How does c# type safety affect the garbage collection?
Posted
by
Indeera
on Stack Overflow
See other posts from Stack Overflow
or by Indeera
Published on 2011-01-06T18:45:06Z
Indexed on
2011/01/06
18:53 UTC
Read the original article
Hit count: 227
I'm dealing with code that handles large buffers (> 100MB) and manipulation of these is done in unsafe
blocks. I'd like to refactor these to avoid unsafe
code. I'm wondering about the likely memory performance gains (positive/negative/neutral) before I embark on that.
I assert that if the compiler can verify types, it could possibly generate better code and that could also mean good GC performance. Is this a valid assertion? What is your experience? Thanks.
© Stack Overflow or respective owner