[fpc-devel] Status report for "class helpers"

Paul Ishenin webpirat at mail.ru
Sun Jan 30 12:36:29 CET 2011


30.01.2011 15:45, Sven Barth wrote:
> Only one minute slower in the complete run instead of four. I let you 
> guys decide whether this is good enough ^^
>
> How often is the compiler compiled completly during a make cycle?
I still see an ability to optimize your implementation.

       procedure update_unit_symtable_options;
          var
            st: tsymtable;
          begin
            st:=owner;
            while not(st.symtabletype in [globalsymtable,staticsymtable]) do
              st:=st.defowner.owner;
            if objecttype in [odt_classhelper,odt_objccategory] then
              include(st.tableoptions,sto_has_classhelper);
          end;

remove "if objecttype in [odt_classhelper,odt_objccategory] then" from 
this routine to outside - so you will not need to scan owners in the 
loop for all object types.

Best regards,
Paul Ishenin



More information about the fpc-devel mailing list