[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Performance question
- From: Ando Sonenblick <ando@...>
- Date: Sun, 28 Sep 2003 17:48:39 -0700
But, perhaps I'm misunderstanding something (not yet having looked into
refs - hey, it's the weekend) but this is my understanding of them
based on these email exchanges.
Say I have a global variable named "foo".
If I'm accessing it a lot (from C++ that is) by name, doesn't every
access go thru a string compare look up in the global table? And isnt
it the case that if I make a reference to that variable and use that
for my access, there will no longer be a string compare?
Is there still a ref look up? Or is it a direct value (such as a ptr
or index, etc)?
On Sunday, September 28, 2003, at 05:00 PM, Luiz Henrique de Figueiredo
I'm accessing things all over the place in the globals table via
strings.... nice to now know that I can create ref's to these items
access them that way much more efficiently...
I'm not sure that it is that much more efficient. Like Roberto said,
need performance measurements to establish that.