Open GoogleCodeExporter opened 9 years ago
I agree with the plan to stop compilation after the priming runs. We'll need
some way of
gauging how many priming runs is appropriate.
What do you mean by "compilation time"? If you mean only the time it takes us
to
compile Python bytecode to machine code, I think that's too narrow. Better
would be the
time from when the work unit is put on the queue to when co_native_function is
set
(aka, when we can actually start using the machine code).
Original comment by collinw
on 11 Aug 2009 at 5:54
So maybe we could turn the hot code set into a map from code to time spent on
the
queue and then expose that information via _llvm? The numbers would be noisier
since
they would only be measured once over the course of the priming runs, but we
don't
need too much precision for tuning this metric. Time spent on the queue will
be an
important metric if we make the queue a priority queue that dynamically moves
hot code
to the front, but for just improving the hotness metric I think the compile
time will
be a good measure.
Original comment by reid.kle...@gmail.com
on 11 Aug 2009 at 11:56
Our hotness function seems to be good enough for now, so this isn't very high
priority. I'm linking the patches I've been working on for this in the tracker
and
dropping this to low priority.
http://codereview.appspot.com/105058/show
http://codereview.appspot.com/157081/show
Original comment by reid.kle...@gmail.com
on 22 Feb 2010 at 5:56
Original issue reported on code.google.com by
reid.kle...@gmail.com
on 10 Aug 2009 at 11:48