[Mono-dev] [SPAM] [PATCH] Simplifying/optimizing CodeGenerator.cs

Andreas Nahr ClassDevelopment at A-SoftTech.com
Sun Jan 6 19:04:10 EST 2008


Is there any specific reason for the patch?

My assumption would be that your patch has a *much* higher memory overhead
AND is probably considerably slower than the current implementation.
Also I personally find the original code simpler than your code (despite
being a little bit longer - this is probably also only true for source lines
but not for generated IL bytes).

The changes in GeneratePrimitiveExpression are probably ok (saves the
typeof's).

Greetings
Andreas

> -----Ursprüngliche Nachricht-----
> Von: mono-devel-list-bounces at lists.ximian.com 
> [mailto:mono-devel-list-bounces at lists.ximian.com] Im Auftrag 
> von Juraj Skripsky
> Gesendet: Sonntag, 6. Januar 2008 22:30
> An: mono-devel-list at lists.ximian.com
> Betreff: [SPAM] [Mono-dev] [PATCH] Simplifying/optimizing 
> CodeGenerator.cs
> 
> Hi,
> 
> Attached you'll find a patch for CodeGenerator.cs (in 
> System.CodeDom.Compiler). It simplifies two methods 
> considerably and might also bring a small performance 
> improvement (perf. tests pending).
> 
> All unit tests pass. May I commit?
> 
> - Juraj
> 




More information about the Mono-devel-list mailing list