Thank you very much Yichao, Tim and Jeffrey for your answers !
I try to summarize. If I understand well, this type definition is correct
and gives the maximum performances :
type Ions_frag
mz::Float64
intensity::Float64
charge::Int64
end
But if I use :
d = Dict()
d["key1"] = Ions_frag(501.5, 1500, 3)
the type of d is unstable and gives poor performances. So, if we assume
that "key1" is a String, do you think that I can improve performances like
that ? :
d = Dict{AbstractString,Any}
d["key1"] = Ions_frag(501.5, 1500, 3)