Originally posted by oleid
View Post
Yes, I do think that your timings are great, and IMO (at least for my machine setup) the biggest impact was setting the SGen GC in mono's args than LLVM.
Also I've noticed that C++ was slower in Linux (I've did not look to C code, mea culpa, was not intended) and may prove that an "over-engineered" solution may be written in C++. The guy from the original site wrote that it was using the typical abstraction level of that language, as C# code was not written with "unsafe" or to do a P/Invoke to get virtually the same time as the best (C language based) solution.
I predict that using SGen you will get around 1 second more from Mono (and for certain you will get a full second if you will also set LLVM) so it will be like 7 against 10 seconds (on your hardware configuration).
The question remain: if you are proficient with Java or C#, will you write this code in C to get one extra second? Also, just for performance considerations, Java was not the safest choice? With no flag, just running it directly?
Comment