Final makes no difference?
John Demme
me at teqdruid.com
Thu Aug 24 03:18:10 PDT 2006
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
--
~John Demme
me at teqdruid.com
http://www.teqdruid.com/
More information about the Digitalmars-d-bugs
mailing list