Chuck,

On Friday 10 December 2004 23:12, Chuck Williams wrote:
> Paul,
> 
> Would there be a way to get the best of both worlds?  E.g., could you
> factor the specializable score combination differently, so that one
> method was called with each new score to generate a state entity, while
> a final method computed the score from the state.  For both sum and max,
> the state entity could just be a float, not requiring an array.  The
> final operation for the sum with coord case would do the coord.  I
> haven't looked at the code carefully enough to see if this actually
> works, but it seemed worth mentioning.

It's simple enough to do some abstract method call instead of initializing
a sum or adding to it. The problem is that as long as such a call is not
effectively inlined by the JVM, it will cause a performance hit for the sum
case.

The latest version of the advanceAfterCurrent method that computes the
score is java protected. It can be overridden to make the best
of it in another world.

Regards,
Paul Elschot


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to