Re: Removing RTTI from binaries

2015-01-11 Thread bearophile via D.gnu
Johannes Pfau: If you only want to disable TypeInfo for some classes that's more difficult: This seems a feature that can be useful in standard D (all compilers), with an annotation of some kind like @nortti. Bye, bearophile

Re: Removing RTTI from binaries

2015-01-11 Thread Johannes Pfau via D.gnu
Am Sun, 11 Jan 2015 15:15:38 + schrieb "Mike" : > On Sunday, 11 January 2015 at 15:02:07 UTC, bearophile wrote: > > Mike: > > > >> I'm building some code that is heavily templated. Therefore, > >> I have many very small classes. > > > > This is a non sequitur. > > I believe it is because ne

Re: Removing RTTI from binaries

2015-01-11 Thread Mike via D.gnu
On Sunday, 11 January 2015 at 15:02:07 UTC, bearophile wrote: Mike: I'm building some code that is heavily templated. Therefore, I have many very small classes. This is a non sequitur. I believe it is because nearly every one of the instantiated template names is appears in the .rodata se

Re: Removing RTTI from binaries

2015-01-11 Thread bearophile via D.gnu
Mike: I'm building some code that is heavily templated. Therefore, I have many very small classes. This is a non sequitur. Most of my code just uses classes as namespaces calling static methods and properties. Aren't structs better for that? Bye, bearophile

Removing RTTI from binaries

2015-01-11 Thread Mike via D.gnu
I'm building some code that is heavily templated. Therefore, I have many very small classes. I was surprised to see my binaries growing very large, disproportionately to the amount of code I was adding. I inspected the binaries with objdump and found contents of the .rodata section like the