Final makes no difference?
    BCS 
    BCS at pathlink.com
       
    Thu Aug 24 08:31:22 PDT 2006
    
    
  
John Demme wrote:
> I'm working on fixing and optimizing my XML parser.  It uses some classes,
> and lots of virtual method calls, so I figured I could really increase my
> speed by making everything final.  I made the classes final, and I put all
> of the methods in a big final{} block, but it made no appreciable
> difference in my time trials.
> 
> Am I doing something wrong?  Does DMD currently not optimize for final?  Or
> are virtual method calls not nearly as bad as I thought? I'm making a ton
> of calls into small functions, so I was also hoping final methods would be
> candidates for inlining...
> 
> I'm using DMD 0.163 and compiling with -O and -inline.
> 
> Thanks
if you aren't using inheritance, try using structs.
    
    
More information about the Digitalmars-d-bugs
mailing list