[Mono-devel-list] reflection.emit in managed code

Miguel de Icaza miguel at ximian.com
Sat May 10 16:45:35 EDT 2003


Hello,

>   I'm thinking about embarking on a project to rewrite parts of 
> reflection.c in managed code, especially the metadata
> emission part , 
> using PEAPI or something like that.
> Is this a good idea? What do you guys think?

I think we should investigate what are the benefits of doing this.

Here are some random thoughts:

	* Currently our reflection in C is pretty good performance-wise (in
	  fact, it helps MCS quite a bit).  

	* Using PEAPI will make our corlib bigger, and we run again into 
 	  issues like keeping two copies of the code, or dynamically loading 
	  the PEAPI code.

	* Using a new API will introduce a new layer that needs to be debugged,
	  it might be best in the long run, but it is worth keeping in
	  mind.

In the end, Paolo is the man to decide what we should do.  

Miguel.



More information about the Mono-devel-list mailing list