Old problem with performance
Weed
resume755 at mail.ru
Sun Feb 8 02:29:11 PST 2009
Weed пишет:
> Daniel Keep пишет:
>> Weed wrote:
>>> [snip]
>> If I had to take a guess, I'd say that it's six times slower because
>> you're performing 100 million allocations. You aren't benchmarking
>> class/struct overhead, you're benchmarking the overhead of doing 100
>> million allocations.
>>
>> You're comparing apples and heffalumps.
>
> Yes, but problem is that D does not leave way to create a class
> instance without allocation
I should explain that I compare not only structs and classes in D but
also classes in C++, there classes work as fast as well as structures in
case of usage of overload of operators.
More information about the Digitalmars-d
mailing list