Re: [SO] question on trivial function inlining

2009-07-10 Thread bearophile
BCS: > > But I'd also like to show that answer of mine to D developers, > done here > :) Do D devs take a look at this D.learn newsgroup, once in a while? :-) Anyway, just to be sure I have done four more little tests, that show an ideal situation. Real world situations are probably worse. vers

Re: [SO] question on trivial function inlining

2009-07-10 Thread BCS
Reply to bearophile, BCS: OK, if you want you can copy it on the StackOverflow done there But I'd also like to show that answer of mine to D developers, done here :)

Re: [SO] question on trivial function inlining

2009-07-10 Thread bearophile
BCS: > Mind if I echo that back to SO? OK, if you want you can copy it on the StackOverflow site (even if it's bad advertising for the D language and even if there are some small grammar errors in what I have written, I have written it quickly, and English isn't my first language) :-) But I'd

Re: [SO] question on trivial function inlining

2009-07-10 Thread BCS
Reply to bearophile, Benjamin Shropshire: Anyone care to add more details? http://stackoverflow.com/questions/1109995/do-getters-and-setters-imp act-performance-in-c-d-java/1110324#1110324 [...] Bye, bearophile Mind if I echo that back to SO?

Re: [SO] question on trivial function inlining

2009-07-10 Thread bearophile
Benjamin Shropshire: > Anyone care to add more details? > http://stackoverflow.com/questions/1109995/do-getters-and-setters-impact-performance-in-c-d-java/1110324#1110324 I think DMD is currently unable to de-virtualize virtual getters and setters. Virtual calls are a bit slower by itself, but th

[SO] question on trivial function inlining

2009-07-10 Thread Benjamin Shropshire
Anyone care to add more details? http://stackoverflow.com/questions/1109995/do-getters-and-setters-impact-performance-in-c-d-java/1110324#1110324