Hi Aleksey,

Thanks for your fast response! Now I see that all these usages of fences 
are for better, but on another side when combined they lead to the slowdown 
of the throughput for single-thread code greatly...

And I feel a little panic when seeing ~1.5x times drop of performance for 
Scala 2.13.0 collections with JDK and ~7x times with GraalVM.

Here is a PR with benchmarks and their results for the linked list building 
in Java and Scala: https://github.com/plokhotnyuk/jsoniter-scala/pull/341

I'm not going to suggest something and just wondering if there is some 
clear approach to minimize the usage of fences, but still stay on the safe 
ground when working with data structures in JVMs.

-- 
You received this message because you are subscribed to the Google Groups 
"mechanical-sympathy" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/mechanical-sympathy/0d427690-98d9-4785-a4c8-0c7fb1c12e11%40googlegroups.com.

Reply via email to