Re: [Nautilus-list] Speedier selection for Nautilus



On 1/5/02 5:24 PM, "Manuel Clos" <llanero jazzfree com> wrote:

> Can someone explain why EelCanvasRect was replaced by GnomeCanvasRE, and
> why GnomeCanvasRE does not only draw the parts that change?

EelCanvasRect in Gnome 1: We created EelCanvasRect rather than putting the
optimization into GnomeCanvasRect because of laziness. The optimization
makes just as much sense for anyone using GnomeCanvasRect, so it could have
gone into gnome-libs instead. Also note that when we completed the
optimization and measured the speed difference, we discovered that it didn't
speed things up very much.

EelCanvasRect in Gnome 2: EelCanvasRect was a subclass of GnomeCanvasRect,
but the GnomeCanvasRect implementation in libgnomecanvas for Gnome 2 was so
different from the Gnome 1 that a complete rewrite of EelCanvasRect would be
necessary. So I deleted it from eel for now. If you would like to see the
optimization reinstated, the smart thing to do would be to put the
equivalent into the GnomeCanvasRect in libgnomecanvas itself.

When Anders looked into doing this, he found that the optimization is almost
there in GnomeCanvasShape. It's just turned off because of a reputed bug in
libart. He might remember more of the details.

    -- Darin





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]