Thanks Tim. I will take a look.
On Wednesday, July 8, 2015 at 12:02:56 AM UTC-3, Tim Holy wrote: > > Without having spent the time to look carefully, one obvious point is that > you > have some serious type-instability in your SharedArray function. If you're > running 0.4, try using @code_warntype and tweak your implementation until > it > is type stable. > > --Tim > > On Tuesday, July 07, 2015 08:19:58 AM Eduardo Lenz wrote: > > Hi. > > > > I was studying parallel methods with some silly routines. After some > tries, > > I realized that reading Shared Arrays is slower than reading regular > > arrays, although I cannot understand the reason. I am using the latest > > version in Nightly. > > > > As an example, routine P2 takes more time than routine P1, and the only > > difference is the fact that A is Shared. Is it expected ? > > > > https://gist.github.com/CodeLenz/776c138c2c49dbd4a2d5 > > > > Thanks for your help. > >
