There's nothing specifically wrong with those two lines, but it's a little
hard to guess how you're using them. Are you calling the function once, or
in a loop?  Is this version of the function identical to the one you
profiled, or was it cut down to be minimal?

if you provide more context, it's more likely someone could help you.

Cheers, Kevin

On Monday, May 12, 2014, cnbiz850 <cnbiz...@gmail.com> wrote:

> Profile shows the two lines in the function being very expensive. Is there
> anything inappropriate?  Any way to improve?
>
> function NoUpdate(data::Data)
>     data.cum[data.i] = data.cum[data.i-1]
>     data.i += 1
> end
>
> type Data
>     cum::Array{Float32,1}
>     i::Int32
>     ...
> end
>

Reply via email to