You can also have const bindings to global mutable state without any
performance impact. Passing around a state object is probably better style
though.
On Thu, Sep 15, 2016 at 2:35 PM, Mauro wrote:
> The first style is fine as objects are passed by reference, i.e. there
>
The first style is fine as objects are passed by reference, i.e. there
are not copies made.
On Thu, 2016-09-15 at 20:15, Nathan Smith wrote:
> Hi
>
> I'm looking for some advice for some on writing methods on large (memory-wise)
> data types. Is there an overhead difference in the following two
Hi
I'm looking for some advice for some on writing methods on large
(memory-wise) data types. Is there an overhead difference in the following
two methods?
type State
hugearray1::Array{Float64, 2}
hugearray2::Array{Float64, 2}
... # Many more components
end
function