neo4j/neo4j — pull request #3286 by martinfurmanski (2014-10-15 10:09:23+00:00)
Title: [2.2] Yield instead of parking for a fixed time while waiting for force after append.

This was profiled on my MBP using a simple "repeated small write transactions from multiple threads" test and it spends upwards 25% less time in this function. I get the same improvement using a 0,01 ms park instead of 0,1 ms. I think that yielding more truthfully expresses the desired behaviour and can scale better.

I also changed the order of the checks in the while-loop putting the real thing we are waiting for as late as possible which might have a minor concurrency benefit.