copy constructors hurting performance

S

Shea Martin

Ron said:
It's not so much STL as what the compiler does with ANY template.




You know you can just shut that off with a compiler option (-pto). Then it
does not share the instantiations of the templates between translation units.
Your program possibly gets a little fatter, as a result.

re: -pto
Thanks, I will try that. I posted about 6mos. ago, trying to figure that
out, and no one replied. I couldn't find anything other than a
description of SunWS_cache in HelpBook.

~S
 
R

Ron Natalie

Shea Martin said:
Thanks, I will try that. I posted about 6mos. ago, trying to figure that
out, and no one replied. I couldn't find anything other than a
description of SunWS_cache in HelpBook.
try doing man CC.
 
S

Shea Martin

Shea said:
re: -pto
Thanks, I will try that. I posted about 6mos. ago, trying to figure that
out, and no one replied. I couldn't find anything other than a
description of SunWS_cache in HelpBook.

~S
I just asked, they said no go. Don't want to change the standard
Makefile to include -pto! I give up. If I had known about -pto a year
ago when I started here, I would have used it from the start in my own
makefiles, and the the issue would probably never have arisen.

Thanks anyway.

~S
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,145
Messages
2,570,826
Members
47,373
Latest member
Desiree036

Latest Threads

Top