Re: How to: referencing variables using the contents of otehr
variables.
fguy64s@gmail.com wrote:
You know dude, you may have advanced knowledge of java, and tons of
experience, but you don't seem to know much about the logic that is
specific to chess programming. All the specific chess related examples
you have given I have refuted. I'm out of here, this is turning into a
waste of my time. Good luck with your little help group you have here.
At this point, everything is all so esoteric anyways. I'm quite sure
Mark has much more experience with wringing performance out of code than
you do. I thought I knew all about how to make my code more performant,
optimizing everything before the fact. And then I did some tests and
discovered that my optimizations were just slowing everything down, on
top of making all the logic hard to understand.
Keep in mind that the people who work on Java do it for a living, and
have been working on optimizing it for over a decade now. Do you really
think that rolling your own dispatches is going to be faster than a
virtual machine which has been busy speeding up polymorphic dispatch for
a decade?
There are documented instances of where people tried to outsmart the JVM
to eke out performance benefits, only to discover that their custom code
was actually slowing everything down.
--
Beware of bugs in the above code; I have only proved it correct, not
tried it. -- Donald E. Knuth