neither allocates any significant memory?
> (This
> is how it should be.) If not, you're still using a global variable.
>
> --Tim
>
> On Wednesday, November 26, 2014 01:46:22 PM Colin Lea wrote:
>> Ah, ok. Thanks! I ran those as functions and got similar timings.
&g
Ah, ok. Thanks! I ran those as functions and got similar timings.
> On Nov 26, 2014, at 1:35 PM, John Myles White
> wrote:
>
> Yes, the global scope is scarcely optimized and doesn't provide useful
> information about performance.
>
> -- John
>
> On Nov
That was in global scope. Should that matter?
> On Nov 26, 2014, at 1:30 PM, John Myles White
> wrote:
>
> ?
ps using loops to access each element
> of
> those matrices.
>
> --Tim
>
> On Wednesday, November 26, 2014 07:55:59 AM Colin Lea wrote:
> > I'm implementing an inference algorithm and am running into memory
> > allocation issues that are slowing it down. I creat
I'm implementing an inference algorithm and am running into memory
allocation issues that are slowing it down. I created a minimal example
that resembles my algorithm and see that the problem persists.
The issue is that Julia is allocating a lot of extra memory when adding
matrices together. Th