I've compared the hotspot inlining on current vars through volatile 
reference, lazy vars ala fastload branch, and static calls ala direct 
branch and indeed the inlining is affected once things get hot. fastload 
avoids early loads but is ultimately slower. direct is about twice as fast 
due (I think) to tighter inlining.


On Wednesday, August 6, 2014 2:44:02 PM UTC-5, Gary Trakhman wrote:
>
> I think that also implies that the JVM can't inline across the fences, so 
> there's another cost.
>
>
> On Wed, Aug 6, 2014 at 3:42 PM, Mike Thvedt <mike....@gmail.com 
> <javascript:>> wrote:
>
>> I don't want to question your microbenchmarks, but I'm not sure you have 
>> the correct interpretation.
>>
>> Read memory fences have little to no cost. In particular, read memory 
>> fences are a no-op (literally) on x86 unless the cache line is invalidated.
>>
>>
>> On Wednesday, August 6, 2014 5:54:32 AM UTC-5, Robin Heggelund Hansen 
>> wrote:
>>
>>> Just read this blog post about Oxen (http://arrdem.com/2014/08/05/
>>> of_oxen,_carts_and_ordering/?utm_source=dlvr.it&utm_medium=twitter). In 
>>> it is mentioned that Rich is re-introducing invokeStatic to achieve a 
>>> possible 10% performance increase for Clojure 1.7.
>>>
>>> I couldn't find any information about this. Anyone know where I can find 
>>> out more?
>>>
>>  -- 
>> You received this message because you are subscribed to the Google
>> Groups "Clojure" group.
>> To post to this group, send email to clo...@googlegroups.com 
>> <javascript:>
>> Note that posts from new members are moderated - please be patient with 
>> your first post.
>> To unsubscribe from this group, send email to
>> clojure+u...@googlegroups.com <javascript:>
>> For more options, visit this group at
>> http://groups.google.com/group/clojure?hl=en
>> --- 
>> You received this message because you are subscribed to the Google Groups 
>> "Clojure" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to clojure+u...@googlegroups.com <javascript:>.
>> For more options, visit https://groups.google.com/d/optout.
>>
>
>

-- 
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new members are moderated - please be patient with your 
first post.
To unsubscribe from this group, send email to
clojure+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/clojure?hl=en
--- 
You received this message because you are subscribed to the Google Groups 
"Clojure" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to clojure+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to