[Fwd: Re: [Mono-devel-list] System.Web/System.Web.UI - patch (code synchronization between Mono and Mainsoft)]

2005-06-11 Thread Ilya Kharmatsky
Original Message Subject: Re: [Mono-devel-list] System.Web/System.Web.UI - patch (code synchronization between Mono and Mainsoft) Date: Sat, 11 Jun 2005 15:35:32 +0300 From: Ilya Kharmatsky <[EM

Re: [Mono-devel-list] System.Web/System.Web.UI - patch (code synchronization between Mono and Mainsoft)

2005-06-11 Thread Ben Maurer
On Sat, 2005-06-11 at 09:43 +0300, Ilya Kharmatsky wrote: > > > In "empty page" benchmark - under heavy stress - it took 3-5% of > overall server side job. > I'm talking about "empty page", where no too much flows works. Wow. How much slower are you on a raw benchmark of accessing a struct arr

Re: [Mono-devel-list] System.Web/System.Web.UI - patch (code synchronization between Mono and Mainsoft)

2005-06-10 Thread Ilya Kharmatsky
Ben Maurer wrote: On Sat, 2005-06-11 at 01:46 +0300, Ilya Kharmatsky wrote: What if you split up such arrays. IE: struct X { int a; int b; int c; } X [] foo; Turns into: int foo_A []; int foo_B []; int foo_C []; It is complicated task i

Re: [Mono-devel-list] System.Web/System.Web.UI - patch (code synchronization between Mono and Mainsoft)

2005-06-10 Thread Ben Maurer
On Sat, 2005-06-11 at 01:46 +0300, Ilya Kharmatsky wrote: > > > > > > What if you split up such arrays. IE: > > > > struct X { > >int a; int b; int c; > > } > > > > X [] foo; > > > > Turns into: > > > > int foo_A []; > > int foo_B []; > > int foo_C []; > > > > > It is complicated tas

Re: [Mono-devel-list] System.Web/System.Web.UI - patch (code synchronization between Mono and Mainsoft)

2005-06-10 Thread Ilya Kharmatsky
What if you split up such arrays. IE: struct X { int a; int b; int c; } X [] foo; Turns into: int foo_A []; int foo_B []; int foo_C []; It is complicated task in perspective of our conveter - if it will use you suggestion, it should remember the context of each foo_X array (in

Re: [Mono-devel-list] System.Web/System.Web.UI - patch (code synchronization between Mono and Mainsoft)

2005-06-10 Thread Ben Maurer
On Sat, 2005-06-11 at 00:50 +0300, Ilya Kharmatsky wrote: > Hi, All! > > Rafael's guess is correct. Since Java doesn't support structs at all - > we are forced to > use classes instead of all ValueTypes. In case of struct array > initialization - our converter > (which converts MSIL => Java bytec

Re: [Mono-devel-list] System.Web/System.Web.UI - patch (code synchronization between Mono and Mainsoft)

2005-06-10 Thread Ilya Kharmatsky
Hi, All! Rafael's guess is correct. Since Java doesn't support structs at all - we are forced to use classes instead of all ValueTypes.  In case of struct array initialization - our converter (which converts MSIL => Java bytecode) generates "hidden" helper functions which initialize each eleme

Re: [Mono-devel-list] System.Web/System.Web.UI - patch (code synchronization between Mono and Mainsoft)

2005-06-10 Thread Rafael Teixeira
I maybe due to the fact that Java, doesn't have value objects other than the basic crowd (int, long, double, float...), and to be able to have the value semantics GH has to create lots of imuttable/cloneable/value-comparable objects... Just guessing... On 6/9/05, Ben Maurer <[EMAIL PROTECTED]> wr

Re: [Mono-devel-list] System.Web/System.Web.UI - patch (code synchronization between Mono and Mainsoft)

2005-06-09 Thread Ben Maurer
On Thu, 2005-06-09 at 19:05 -0400, Gonzalo Paniagua Javier wrote: > On Wed, 2005-06-08 at 14:11 +0300, Ilya Kharmatsky wrote: > > Please review the patch. > > > > BTW, in HtmlTextWriter.cs we changed internal structs (e.g. > > RenderStyle) to be the classes > > and not structs - this in order to

Re: [Mono-devel-list] System.Web/System.Web.UI - patch (code synchronization between Mono and Mainsoft)

2005-06-09 Thread Gonzalo Paniagua Javier
On Wed, 2005-06-08 at 14:11 +0300, Ilya Kharmatsky wrote: > Please review the patch. > > BTW, in HtmlTextWriter.cs we changed internal structs (e.g. > RenderStyle) to be the classes > and not structs - this in order to resolve heavy performance problem > in our implementation > of initializatio

[Mono-devel-list] System.Web/System.Web.UI - patch (code synchronization between Mono and Mainsoft)

2005-06-08 Thread Ilya Kharmatsky
Please review the patch. BTW, in HtmlTextWriter.cs we changed internal structs (e.g. RenderStyle) to be the classes  and not structs - this in order to resolve heavy performance problem in our implementation  of initialization of arrays of structs. May be the better idea is to change also ori