POD
Nicolas Sicard
dransic at gmail.com
Mon Jan 14 14:10:33 PST 2013
On Monday, 14 January 2013 at 21:18:13 UTC, Walter Bright wrote:
> On 1/14/2013 11:24 AM, Nicolas Sicard wrote:
>> I had started but never finished such a wrapping struct for
>> units, and I gave it
>> another try recently (https://github.com/biozic/siunits).
>>
>> Clearly, when using POD structs, the code of the function
>> 'quality' in
>> examples/rlc.d, executes way more rapidly (5x) than using
>> non-POD structs. The
>> only difference between POD and non-POD in my tests is the
>> presence of
>> non-default constructors, which is versioned out in the POD
>> version.
>>
>> Code of the quality function with POD struct (compiled with -O
>> -inline -release):
>
> Please make a bugzilla entry with this. Thanks!
Done: http://d.puremagic.com/issues/show_bug.cgi?id=9320
English is not my mother language, so I hope the summary is OK.
More information about the Digitalmars-d
mailing list