Re: [julia-users] Memory allocation issue

2014-11-28 Thread Colin Lea
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

Re: [julia-users] Memory allocation issue

2014-11-26 Thread Colin Lea
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

Re: [julia-users] Memory allocation issue

2014-11-26 Thread Colin Lea
That was in global scope. Should that matter? > On Nov 26, 2014, at 1:30 PM, John Myles White > wrote: > > ?

Re: [julia-users] Memory allocation issue

2014-11-26 Thread Colin Lea
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

[julia-users] Memory allocation issue

2014-11-26 Thread Colin Lea
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