On 19/07/16 15:23, ajs6f wrote:
Github user ajs6f commented on the issue:

     https://github.com/apache/jena/pull/157

     I'm not sure what the point of the periodic cancellation checking 
machinery is.
     It seems like it is left over from your diagnostics.

(no)

     It doesn't seem to save any time, because the test `count % 
cancelTestFrequency == 0`
>      is more expensive than the test it is guarding `(cancelled)`.

`cancelled` is volatile so reading from it involves some synchronisation
cost, or so I've been lead to believe. (The magic number is just A
RandomValue To Use.)

Chris

--
"He could not weigh up which was worse and so tried not to think about either."
                                                /The Spellgrinder's Apprentice/

Epimorphics Ltd, http://www.epimorphics.com
Registered address: Court Lodge, 105 High Street, Portishead, Bristol BS20 6PT
Epimorphics Ltd. is a limited company registered in England (number 7016688)

Reply via email to