[Mono-dev] [PATCH] Optimize Encoding.GetByteCount

Paolo Molaro lupus at ximian.com
Mon Oct 30 10:13:28 EST 2006

On 10/26/06 Atsushi Eno wrote:
> Well, the point of the Ben's question is, compacting GC is likely to
> store array in nursery area (likely, since it could be regarded too
> big to store in nursery area), so nursery allocation and releasing
> might become faster than fixing string pointer which might slowdown GC.

Using the fixed keyword has no runtime cost per se (it will have a
cost only if a garbage collection is performed while it is in effect).
Using fixed (correctly handling empty arrays) is fine in this case.


lupus at debian.org                                     debian/rules
lupus at ximian.com                             Monkeys do it better

More information about the Mono-devel-list mailing list