On Wed, 29 Dec 2010 13:14:34 +0200, spir wrote:
I'm surprised by 150 for direct struct data access compared to a
simply-referenced element. ??? Would someone confirm this result?
Perhaps you could post the source code you used for the benchmark, to make
this easier?
[Also, I could not fi
spir:
> Note: for _static_ member functions, times are roughly equal for all cases (~
> 215%).
Keep in mind that (in theory) true static values need __gshared.
> [Also, I could not find how to get a row malloc (un-GC'ed), while indeed D
> must have one --probably C's directly, but where is it
Hello,
Out of curiosity, I did some timings of data & function member access on
structs & classes. Actually, to check whether (explicity) referenced structs
would ~ behave like classes in this respect, I added a struct element allocated
via
auto ps = cast(S*)(GC.malloc(S.sizeof));
*ps