On 04/11/02 Dan Sugalski wrote:
> I'm not sure which is worse--the amount of data we're copying around, 
> or the fact that we eat Mono's lunch while we do so.

:-)
Could you post the code for the sample? Is it based on the snipped Simon
posted a while ago where it used the pattern:

        string buffer = "";
        ...
        for (...) {
                buffer += "*";
        }

A string in the CLR is completely different from a scalar in the perl
world. A string is immutable, so when you use the += operator on it,
it really creates a new object each time, so, if the test uses that
pattern it's comparing apples and oranges. At the very least, you should
use a StringBuilder (or, if you want to really compare the language/VM
implementation differences, you'd use a simple char[] array in the C#
case).

lupus

-- 
-----------------------------------------------------------------
[EMAIL PROTECTED]                                     debian/rules
[EMAIL PROTECTED]                             Monkeys do it better

Reply via email to