Re: [Fwd: calculating text length]



On Wed, 2007-04-18 at 10:51 -0500, Federico Mena Quintero wrote:
> El mi�18-04-2007 a las 13:43 +0300, Tapani P�i escribi� 
> > I have a performance problem with Matchbox window manager calculating
> > window title width rather slowly with Pango when doing ellipsation for
> > the title.
> 
> Ouch.  We didn't get around to optimizing ellipsization during the
> initial profiling spree in Pango.
> 
> Do you want to revive that benchmark?  It's in the 'pango-profile'
> module on svn.
> 
> Still, how did you find about this problem?  Are you running a window
> manager benchmark, or is it measuring the text way too often, or what?
> 
>   Federico

Note that he's written his own (very inefficient) ellipsization
algorithm.  As Owen replied on desktop-devel-list, Pango's ellipsization
algorithm does a lot better than that.

-- 
behdad
http://behdad.org/

"Those who would give up Essential Liberty to purchase a little
 Temporary Safety, deserve neither Liberty nor Safety."
        -- Benjamin Franklin, 1759






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