Computer Chess Club Archives


Search

Terms

Messages

Subject: Re: Q: Performance for public vs protected data in C++ (OT)

Author: Gerd Isenberg

Date: 06:03:31 10/18/02

Go up one level in this thread


On October 18, 2002 at 01:46:48, Nagendra Singh Tomar wrote:

>On October 18, 2002 at 00:54:56, Jeremiah Penery wrote:
>
>>On October 18, 2002 at 00:50:22, Nagendra Singh Tomar wrote:
>>
>>>I hope this is in connection to some chess software :-)
>>>
>>>Anyway, I don;t see any reason for that .. Compiler checks the access rights at
>>>the time of compilation to see any illegal accesses. Once the code is compiled
>>>there is no difference between private/public/protected
>>
>>I think the issue is whether the compiler can do more optimizations to
>>private/protected stuff than to public stuff, or vice versa.
>
>thats what I meant. The compiler could do anything to any (public/protected) of
>these, as long as it checks the access righst correctly at compile time.. And I
>do'nt think access rights has anything to do with optimization..
>
>tomar

That's absolulely correct. The access qualifier have nothing to to with
performance or optimization.

Gerd



This page took 0 seconds to execute

Last modified: Thu, 15 Apr 21 08:11:13 -0700

Current Computer Chess Club Forums at Talkchess. This site by Sean Mintz.