Computer Chess Club Archives


Search

Terms

Messages

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

Author: Peter Fendrich

Date: 01:37:11 10/18/02

Go up one level in this thread


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 :-)

Of course!
I'm planning to restructure my program Terra.

>>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.

That's what I was thinking of.
When typed 'protected' the compiler knows that the access rights are reduced and
that sometimes increase the possibility to optimise.
If really it's the case here I don't know.
Peter



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.