[Mono-dev] [Patch] AssemblyName ctor

Paolo Molaro lupus at ximian.com
Tue Aug 23 09:49:35 EDT 2005


On 08/22/05 Carlos Alberto Cortez wrote:
> We have mono_assembly_name_parse, which receives a MonoString* and a
> MonoAssemblyName*. The problem I find is that every time a
> System.Reflection.AssemblyName were created using the described ctor, we
> should also create a MonoAssemblyName (not needed).

MonoAssemblyName is a structure, so the cost of 'creating' a MonoAssemblyName
is essentially 0.

> With the managed ctor, we also avoid calling the internal call.

Your implementation does at least a few tens of internal calls, likely a
few hundreds.

lupus

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



More information about the Mono-devel-list mailing list