Re: getFontSettings optimization

2002-03-13 Thread Lars Gullik Bjønnes
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: >> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: > > | Lars> Each sample counts as 0.01 seconds. | [...] > | getFontSettings is down to .23ms/call from 0.89. This is good. > | Lars> | I've been wanting to work on getFontSetting aft

Re: getFontSettings optimization

2002-03-13 Thread Jean-Marc Lasgouttes
> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: Lars> Each sample counts as 0.01 seconds. [...] getFontSettings is down to .23ms/call from 0.89. This is good. Lars> | I've been wanting to work on getFontSetting after 1.2.0, so I Lars> would | like to see whether this very simp

Re: getFontSettings optimization

2002-03-13 Thread Lars Gullik Bjønnes
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: >> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: > | Lars> I think this is a better algorithm for font lookup. (at least | Lars> gprof tells me so) > | This is probably true, since there are very few font changes in a | typical para

Re: getFontSettings optimization

2002-03-13 Thread Andre Poenitz
On Wed, Mar 13, 2002 at 11:25:18AM +0100, Jean-Marc Lasgouttes wrote: > Andre> 'Excessive memory consumption when using mathed's approach > Andre> without any change'. The current FontTable approach is indeed > Andre> pretty compact, but I have the suspicion that it is more code > Andre> involved

Re: getFontSettings optimization

2002-03-13 Thread Jean-Marc Lasgouttes
> "Andre" == Andre Poenitz <[EMAIL PROTECTED]> writes: Andre> On Wed, Mar 13, 2002 at 11:00:30AM +0100, Jean-Marc Lasgouttes Andre> wrote: Concerning the excessive memory consumption: I believe Andre> that one could reduce it significantly by converting parts 'far Andre> from the cursor' (i.e

Re: getFontSettings optimization

2002-03-13 Thread Andre Poenitz
On Wed, Mar 13, 2002 at 11:00:30AM +0100, Jean-Marc Lasgouttes wrote: > Andre> Concerning the excessive memory consumption: I believe that one > Andre> could reduce it significantly by converting parts 'far from the > Andre> cursor' (i.e not the same word or the same line or paragraph) > Andre> to

Re: getFontSettings optimization

2002-03-13 Thread Jean-Marc Lasgouttes
> "Andre" == Andre Poenitz <[EMAIL PROTECTED]> writes: Andre> Concerning the excessive memory consumption: I believe that one Andre> could reduce it significantly by converting parts 'far from the Andre> cursor' (i.e not the same word or the same line or paragraph) Andre> to some more compact

Re: getFontSettings optimization

2002-03-13 Thread Andre Poenitz
On Wed, Mar 13, 2002 at 10:15:03AM +0100, Jean-Marc Lasgouttes wrote: > I've been wanting to work on getFontSetting after 1.2.0, so I would > like to see whether this very simple approach is enough. With yesterdays math metrics calculation speedup I am convinced that mathed's 'fat data' approach

Re: getFontSettings optimization

2002-03-13 Thread Jean-Marc Lasgouttes
> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: Lars> I think this is a better algorithm for font lookup. (at least Lars> gprof tells me so) This is probably true, since there are very few font changes in a typical paragraph. What are the getFontSettings numbers down to? I've be

getFontSettings optimization

2002-03-12 Thread Lars Gullik Bjønnes
I think this is a better algorithm for font lookup. (at least gprof tells me so) Index: paragraph.C === RCS file: /usr/local/lyx/cvsroot/lyx-devel/src/paragraph.C,v retrieving revision 1.196 diff -u -p -r1.196 paragraph.C --- paragr