On Wed, Oct 28, 2015 at 7:02 AM, 'Greg Plowman' via julia-users <[email protected]> wrote: > Thanks Kristoffer. > > But for Q2, I'm not sure I want to exclude gc time. > Rather I want gc time to be correctly allocated. > I'm not really sure how gc works, but I thought calling gc() before each > function call would ensure there are no outstanding gc's that might happen > during the call. > In other words, If I do: > @timed f1() > @timed f2() > > I want to avoid allocations in f1 being gc'd and timed during execution of > f2. > Maybe I'm just being ridiculously paranoid? >
Yes. This makes sense if f1 allocates a lot and is one of the few situation that makes sense to call the gc manually. > >
