Tyler Littlefield wrote:
> I was a bit short last time when answering about stl, I'm in a bit of a 
> hurry, but have more time than I thought I would.
> I don't want to use stl because that means I get the overhead that comes with 
> it. I'd rather not deal with that, or have to work around it.
> The program I'm writing is cpu intensive, and the stl adds more overhead than 
> I want to use for some operations.
>       <><><>
> 
> Thanks,
> Tyler Littlefield
> http://tysdomain.com

Member functions you define within templates and classes are supposed to 
be implicitly 'inline'd in Release mode.  It is still up to the compiler 
to actually decide to inline them.

Useful information to know.

In my experience, placing dependencies on operator overloads has the 
tendency for me to get lazy about performance (in particular, operators 
such as '+' where you return a temporary copy of the object instead of a 
reference).  You might want to avoid implementing too many operator 
overloads for this very reason.

-- 
Thomas Hruska
CubicleSoft President
Ph: 517-803-4197

*NEW* MyTaskFocus 1.1
Get on task.  Stay on task.

http://www.CubicleSoft.com/MyTaskFocus/

Reply via email to