Dear Holger,
On Tuesday, August 14, 2012 04:31:13 PM SirVer wrote:
> I was a little disappointed in the limited Profiling available.
It's definitely very limited right now. Sorry about that. To add a couple of
points to Kevin's, you have to say 'load("profile.jl")' before you can even do
any profiling at all.
Also, the profiling doesn't time certain things: in this case, that's a big
problem, because it turns out it's the computation "length(next)" in your
while loop that is the single biggest performance robber (more than twice the
time of all other lines put together). I discovered that simply by (1) knowing
about this limitation (since I'm the culprit behind the profiler) and noticing
that it was the line after the while statement that dominated the timing, and
(2) duplicating the length computation on the next line and profiling the .
Presumably if you can more efficiently just test whether it's empty, that will
largely fix your problem?
At the moment I can't remember why I didn't put in timing of the conditions in
control/flow statements, but I have a vague memory that it's a limitation due
to elseif statements not getting their own line numbers. Perhaps if that could
be fixed, one could make further improvements.
Best,
--Tim
> I couldn't
> even tell *where* Julia was slower than python - something gives me the
> feeling it is in the Set implementation.
>
> On Tue, Aug 14, 2012 at 7:14 PM, Stefan Karpinski
> <
ste...@karpinski.org<javascript:>
> > > wrote:
> >> Ok, I did have a moment to skim through this and it all looks pretty
> >> reasonable. I'll take a deeper look later. Either there's some simple
> >> fix,
> >> or we have some optimizations to do.
> >>
> >>
> >> On Tue, Aug 14, 2012 at 7:12 PM, Stefan Karpinski
> >> <
ste...@karpinski.org<javascript:>>>
> >> > wrote:
> >>> I can't take a look at this just now, but I can check it out later when
> >>> I have some time. There are a number of performance tips that might be
> >>> of
> >>> help:
> >>>
> >>>
http://docs.julialang.org/en/latest/manual/performance-tips/
> >>>
> >>> Take a look at those and maybe one of them will stand out as relevant.
> >>> In the meantime maybe some of the other Juliaphiles here can check out
> >>> your
> >>> code :-)
> >>>
> >>> On Tue, Aug 14, 2012 at 7:07 PM, SirVer <
sir...@gmx.de
<javascript:>>wrote:
> >>>> /292002 [2] Python:
https://gist.github.com/3353764