How to reduce child class size

Posted by Aliaksandr Tarasevich on 09-Jul-2013 21:20

Hello,

I have an abstract base class (plain ABL without .NET) with multiple protected methods which I use in a bunch of child classes. The base class source file size is 110Kb (compiled ~ 510Kb), all child classes source files have size up to 14K, but compiled files take from 260Kb - 310Kb (taking into account that there is almost no logic inside, exept calls of methods in the super class). Is there something I can do with compiler to reduce the size of child classes?

Maybe it has something to do with this topic (Performance penalty from inheritance - http://communities.progress.com/pcom/message/98265#98265), but this is ridiculous, my smallest source code of child class size is 6K, but the compiled version of it takes about 268Kb.

Progress 10.2B07

Regards,Aliaks

All Replies

Posted by Matt Baker on 10-Jul-2013 16:17

You can use the min-size flag on the compile statement.  That will strip out pretty much anything that can be removed.  This drops  the debug information and some information used by proxygen.

This thread is closed