Hey,

On Tue, Feb 7, 2012 at 3:26 AM, Ken Beckett <[email protected]> wrote:
> I still think that the DefaultAssemblyResolver needs a PurgeCache()
> method.  That would make it actually useful for users of Mono Cecil
> who only need to load one batch of related assemblies at a time, while
> allowing for unloading and prevention of memory leaks.  Of course,
> many wouldn't notice their apps leaking, but at least if they did,
> they'd be able to fix it if they managed to locate the PurgeCache()
> method.

I still think it doesn't make sense to reuse a DefaultAssemblyResolver
between two different operations. You can just instantiate a new one
and use it for the new set of assembly.

> BTW, yes Mono Cecil is a lot faster loading metadata than Reflection,
> but sadly (and contrary to reports I've seen) it uses a lot more
> memory than Reflection - for my app, testing across many large test
> solutions, and loading exactly the same DLLs and types, it generally
> uses more than twice as much memory.

Ô the the age old compromise of speed against memory consumption. At
least Cecil assemblies are collectible as soon as you're done with
them. And with the on-going work to reduce the memory usage you'll
have more tuning possibilities.

> I suppose wishing for a DefaultAssemblyResolver that supports multiple
> instances with a shared cache in order to handle different groups of
> assemblies is asking too much...  or to bring Mono Cecil into the
> modern world of source code that includes documentation comments so
> that we can benefit from the wondrous magic known as Intellisense...

I'll pass on the cute sarcastic tone. I actually understand that
you're bitter. The default behavior of this library you got for a very
expensive price doesn't fit you, and as there's no way to override
this behavior you can't get your money worth. Totally understandable.

As for the inline xmldoc comments, I already stated that I don't like
them much, they just create an insane amount of noise in the code.
It's in my todo list to use the mono tools to maintain xmldoc for
intellisense outside of the code. But time is limited.

Jb

-- 
--
mono-cecil

Reply via email to