Hi Paolo, Attached is a testcase. Runs in 50ms on MS .NET, takes 16534 ms on Mono 0.l7 (sorry, I don't have a more recent version).
Regards, Jeroen > > > -----Original Message----- > From: Paolo Molaro [mailto:[EMAIL PROTECTED]] > Sent: Saturday, February 15, 2003 19:37 > To: [EMAIL PROTECTED] > > On 02/15/03 Jeroen Frijters wrote: > > > - gnu.testlet.java.lang.reflect.Array.newInstance hangs because > > > java.lang.reflect.Array.newInstance (String.class, new > > > int[255]) is very slow (at least under mono). > > > > Paolo, could you please have a look at this? > > What is that code supposed to do? > I wrote a simple program to create a n-dimensional array in C#: > > using System; > class T { > static void Main () { > Array a1 = Array.CreateInstance (typeof > (string), new int [32]); > Console.WriteLine ("{0}", a1); > } > } > > I also used 255 instead of 32 and the code runs fast, with no > noticeable delay (the MS runtime doesn't allow a dimension > 32). > > If the code is supposed to create a jagged array with 255 dimensions I > can see why it would be slow:-) But I doubt it's supposed to do that, > right? I'm completely clueless about the java API, so if you can > describe what should happen there, I'll write a test. > > Thanks. > > lupus > > -- > ----------------------------------------------------------------- > [EMAIL PROTECTED] debian/rules > [EMAIL PROTECTED] Monkeys do it better > > > ------------------------------------------------------- > This sf.net email is sponsored by:ThinkGeek > Welcome to geek heaven. > http://thinkgeek.com/sf > _______________________________________________ > Ikvm-developers mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/ikvm-developers >
arraytest.cs
Description: arraytest.cs
