[Mono-devel-list] memory usage in Reflection classes

Varga Zoltan vargaz at freemail.hu
Tue Jul 1 16:11:11 EDT 2003


                                       Hi,

  Currently, the reflection classes call icalls function
like get_type_info ()
without caching the result. This means that a simple call like
Type.IsPrimitive ends up allocating two string on each call.
This is
showing up in memory allocation profiles of some
applications like nunit.
I would like to know if this behaviour is by design (e.g.
favoring the
smaller static memory usage of no caching) or is this a bug
which can
be fixed.

             thanks

                    Zoltan





More information about the Mono-devel-list mailing list