On Thu, 1 Jun 2006, Tim Jenness wrote:
> On Thu, 1 Jun 2006, David Berry wrote:
>
> > Having taken out the database stuff, there seems to be no single obvious
> > bottle neck.
>
> What is the AGI_SLAB stuff doing? That accounts for a 1/3 of the overhead.
I find that very hard to believe - all AGI_SLAB does is to store a label
with an AGI picture. It's called once for every spectrum. When I profiled
clinplot using gprof it said that agi_slab was using 0.5% of the time.
Profilers!!!!!
> If we used switchMaps could we restrict all AGI database handling to a
> single event after the spectra have been drawn?
Yes, but it would take quite a bit of re-structuring. The problem is
that re-using the existing linplot code results in every spectrum being
created as a separate picture, with all the associated overheads. But
even switching off all writes to the database only seems to save 25%.
I'll try some experiments with re-structuring the code to avoid re-use
of linplot code...
David
|