optimizing struct/class members

2015-07-06 Thread lobo via Digitalmars-d-learn
Hi, In C++ it's important to layout struct/class members correctly for performance reasons. Is the same true in D? Thanks, lobo

Re: optimizing struct/class members

2015-07-06 Thread John Colvin via Digitalmars-d-learn
On Monday, 6 July 2015 at 23:24:00 UTC, lobo wrote: Hi, In C++ it's important to layout struct/class members correctly for performance reasons. Is the same true in D? Thanks, lobo Short answer: yes.

Re: optimizing struct/class members

2015-07-06 Thread lobo via Digitalmars-d-learn
On Tuesday, 7 July 2015 at 00:23:38 UTC, John Colvin wrote: On Monday, 6 July 2015 at 23:24:00 UTC, lobo wrote: Hi, In C++ it's important to layout struct/class members correctly for performance reasons. Is the same true in D? Thanks, lobo Short answer: yes. thanks, lobo