Thanks for the response.
It is called in a loop. The function profiled is exactly as I showed
here. The profile section is as follows:
6449 ...ies/Gen13.jl; GenMC13; line: 176
4751 ...es/Tools.jl; NoUpdate; line: 224
829 ...es/Tools.jl; NoUpdate; line: 225
On 05/12/2014 10:14 PM, Kevin Squire wrote:
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 <[email protected]
<mailto:[email protected]>> 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