Yes, I believe there’s been a compiler regression for this specific example.

 — John

On Aug 24, 2014, at 5:54 PM, Mohammed El-Beltagy <mohammed.elbelt...@gmail.com> 
wrote:

> The blog post by John 
> http://www.johnmyleswhite.com/notebook/2013/12/06/writing-type-stable-code-in-julia/
> demonstrated that massive improvements can be realized my having type stable 
> code. The reasoning was the type stable code, resulted in much more  
> efficient compiler generated code. This was very nicely empirically 
> demonstrated. It worked for Julia 0.2, but now it does not for 0.3.  
> 
> On Monday, August 25, 2014 3:19:34 AM UTC+3, Iain Dunning wrote:
> Mohammed, the last post was over 6 months ago - what precisely is not valid?
> 
> On Sunday, August 24, 2014 8:06:50 PM UTC-4, Mohammed El-Beltagy wrote:
> That is no longer valid under in Julia 0.3. The code only runs 3x faster and 
> the type stable code looks a bit more complex. 
> 
> On Monday, December 16, 2013 8:48:40 PM UTC+2, John Myles White wrote:
> I think Michael is suggesting that it would help to have an automated tool to 
> do this. This stuff comes up in subtle ways in complex code. While editing 
> some of the t-SNE code someone posted recently, I found that just removing a 
> single type-unstable call to maximum made the code 100x faster. It was a bit 
> too complex to read through code_typed or anything else, so automated tools 
> would make a big difference.
> 
>  -- John
> 
> On Dec 16, 2013, at 10:46 AM, Ivar Nesje <iva...@gmail.com> wrote:
> 
>> You might use code_typed and look at the output and see if it looks curious.
>> 
>> kl. 19:28:05 UTC+1 mandag 16. desember 2013 skrev John Myles White følgende:
>> I believe Leah was working on a tool to do some of this. 
>> 
>>  -- John 
>> 
>> On Dec 16, 2013, at 10:22 AM, Michael Fox <415...@gmail.com> wrote: 
>> 
>> > After reading about type stability in the FAQ and this excellent post -- 
>> > http://www.johnmyleswhite.com/notebook/2013/12/06/writing-type-stable-code-in-julia/
>> >  -- I want to make sure I'm doing it right. 
>> > 
>> > Is there any way to ask Julia if a particular function has achieved type 
>> > stability? This would be a good feature for julialint. 
>> 
> 

Reply via email to