is const function faster than non-const?
From: Yuming Ma (ma_yuming_at_yahoo.com)
Date: 12/08/03
- Next message: Chris Dams: "Re: RTTI?"
- Previous message: Jack Klein: "Re: Binary trees"
- Next in thread: Jack Klein: "Re: is const function faster than non-const?"
- Reply: Jack Klein: "Re: is const function faster than non-const?"
- Reply: Dimitris Kamenopoulos: "Re: is const function faster than non-const?"
- Reply: Peter van Merkerk: "Re: is const function faster than non-const?"
- Reply: jeffc: "Re: is const function faster than non-const?"
- Reply: wogston: "Re: is const function faster than non-const?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 8 Dec 2003 01:02:43 -0500
consider this:
class X
{
void foo() const;
void goo();
}
suppose that foo() and goo() has exactly the same content, is foo() faster
than goo()? what does compiler optomization does to const function?
thanks,
yuming,
- Next message: Chris Dams: "Re: RTTI?"
- Previous message: Jack Klein: "Re: Binary trees"
- Next in thread: Jack Klein: "Re: is const function faster than non-const?"
- Reply: Jack Klein: "Re: is const function faster than non-const?"
- Reply: Dimitris Kamenopoulos: "Re: is const function faster than non-const?"
- Reply: Peter van Merkerk: "Re: is const function faster than non-const?"
- Reply: jeffc: "Re: is const function faster than non-const?"
- Reply: wogston: "Re: is const function faster than non-const?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|