POD

Walter Bright newshound2 at digitalmars.com
Mon Jan 14 13:18:14 PST 2013


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!



More information about the Digitalmars-d mailing list