Hi !

Here are the results :

type Ions_frag{}
  mz::Float64 
  intensity::Float64
  charge::Int64 
end


computation time : 26.88 s


immutable Ions_frag

   mz::Float64
   intensity::Float64
   charge::Int64
end


computation time : 27.00 s



Ions = Dict{ASCIIString, Ions_frag}()


immutable Ions_frag


   mz::Float64
   intensity::Float64
   charge::Int64
end
computation time : 17.96 s



Ions = Dict{ASCIIString, Ions_frag}()

type Ions_frag{}
  mz::Float64 
  intensity::Float64
  charge::Int64 
end

computation time : 17.58 s



So, in conclusion "immutable" is better than "type" in theory but not in 
practice. The Dict() type has a major effect on performances !

Thanks !

Reply via email to