immutable MyType
    x::AbstractString
    y::Int
end


@time for i in 1:10^5 MyType("a", 1).y end 


In julia v0.4

0.000813 seconds (100.00 k allocations: 3.052 MB)


In julia v0.5

0.000003 seconds (5 allocations: 176 bytes)


It seems the memory layout for immutable which contains fields with non-bit 
types has changed in v0.5.


I would like to know more in details about such change, Where can I find 
the related issues, discussion in GitHub or mailing list?

Reply via email to