Re: LyX/Mac 1.5.0, Qt 4.2.1 Profile

2006-10-29 Thread Abdelrazak Younes
Andre Poenitz wrote: On Fri, Oct 27, 2006 at 11:13:45AM +0200, Jean-Marc Lasgouttes wrote: "Abdelrazak" == Abdelrazak Younes <[EMAIL PROTECTED]> writes: Also, we can probably use something better than a map (I'm sure qt has nice hash tables) to store metrics. Abdelrazak> Or Andre's vector solu

Re: LyX/Mac 1.5.0, Qt 4.2.1 Profile

2006-10-29 Thread Andre Poenitz
On Fri, Oct 27, 2006 at 11:13:45AM +0200, Jean-Marc Lasgouttes wrote: > > "Abdelrazak" == Abdelrazak Younes <[EMAIL PROTECTED]> writes: > > >> Also, we can probably use something better than a map (I'm sure qt > >> has nice hash tables) to store metrics. > > Abdelrazak> Or Andre's vector solu

Re: LyX/Mac 1.5.0, Qt 4.2.1 Profile

2006-10-29 Thread Andre Poenitz
On Fri, Oct 27, 2006 at 11:13:45AM +0200, Jean-Marc Lasgouttes wrote: > > "Abdelrazak" == Abdelrazak Younes <[EMAIL PROTECTED]> writes: > > >> Also, we can probably use something better than a map (I'm sure qt > >> has nice hash tables) to store metrics. > > Abdelrazak> Or Andre's vector solu

Re: LyX/Mac 1.5.0, Qt 4.2.1 Profile

2006-10-29 Thread Georg Baum
Am Samstag, 28. Oktober 2006 15:44 schrieb Jean-Marc Lasgouttes: > > "Abdelrazak" == Abdelrazak Younes <[EMAIL PROTECTED]> writes: > > Abdelrazak> En direct tu peux me parler en Francais si tu veux :-) > > Je préfère continuer sur la liste pour que les autres puissent > intervenir (ai je répo

Re: LyX/Mac 1.5.0, Qt 4.2.1 Profile

2006-10-28 Thread Abdelrazak Younes
Jean-Marc Lasgouttes wrote: "Abdelrazak" == Abdelrazak Younes <[EMAIL PROTECTED]> writes: Abdelrazak> En direct tu peux me parler en Francais si tu veux :-) Je préfère continuer sur la liste pour que les autres puissent intervenir (ai je répondu en direct par erreur?) Ouep. Abdelrazak> Bac

Re: LyX/Mac 1.5.0, Qt 4.2.1 Profile

2006-10-28 Thread Abdelrazak Younes
Jean-Marc Lasgouttes wrote: "Abdelrazak" == Abdelrazak Younes <[EMAIL PROTECTED]> writes: Abdelrazak> There was no such trick. Andre proposed to limit the cache Abdelrazak> to the first 256 chars. I pushed that to 65536 (2^16) Abdelrazak> which covers all of ucs2. Even if we use 100 different A

Re: LyX/Mac 1.5.0, Qt 4.2.1 Profile

2006-10-28 Thread Jean-Marc Lasgouttes
> "Abdelrazak" == Abdelrazak Younes <[EMAIL PROTECTED]> writes: Abdelrazak> En direct tu peux me parler en Francais si tu veux :-) Je préfère continuer sur la liste pour que les autres puissent intervenir (ai je répondu en direct par erreur?) Abdelrazak> Back to English, yes I understand wha

Re: LyX/Mac 1.5.0, Qt 4.2.1 Profile

2006-10-28 Thread Jean-Marc Lasgouttes
> "Abdelrazak" == Abdelrazak Younes <[EMAIL PROTECTED]> writes: Abdelrazak> There was no such trick. Andre proposed to limit the cache Abdelrazak> to the first 256 chars. I pushed that to 65536 (2^16) Abdelrazak> which covers all of ucs2. Even if we use 100 different Abdelrazak> fonts and size

Re: LyX/Mac 1.5.0, Qt 4.2.1 Profile

2006-10-27 Thread Abdelrazak Younes
Abdelrazak Younes wrote: Jean-Marc Lasgouttes wrote: "Abdelrazak" == Abdelrazak Younes <[EMAIL PROTECTED]> writes: Do we really want to use a vector to cache unicode data? Abdelrazak> No, a vector to cache width (int) data. This is to replace Abdelrazak> the map font width, nothing to do w

Re: LyX/Mac 1.5.0, Qt 4.2.1 Profile

2006-10-27 Thread Abdelrazak Younes
[EMAIL PROTECTED] wrote: Please be more explicit I don't get what you mean here. We should maybe switch to French... ;-) You replaced one simple call to get metrics by another one which looks more complicated. There should bee only one Method (as thre used to be), and it should do the cach

Re: LyX/Mac 1.5.0, Qt 4.2.1 Profile

2006-10-27 Thread Abdelrazak Younes
Jean-Marc Lasgouttes wrote: "Abdelrazak" == Abdelrazak Younes <[EMAIL PROTECTED]> writes: Abdelrazak> This one was very helpful Bennett, thank you. I cannot do Abdelrazak> much about the drawText() operation as this is Qt API but Abdelrazak> I have changed the next line that occupied 6 second t

Re: LyX/Mac 1.5.0, Qt 4.2.1 Profile

2006-10-27 Thread Jean-Marc Lasgouttes
> "Abdelrazak" == Abdelrazak Younes <[EMAIL PROTECTED]> writes: Abdelrazak> This one was very helpful Bennett, thank you. I cannot do Abdelrazak> much about the drawText() operation as this is Qt API but Abdelrazak> I have changed the next line that occupied 6 second to use Abdelrazak> the fon

Re: LyX/Mac 1.5.0, Qt 4.2.1 Profile

2006-10-27 Thread Abdelrazak Younes
Bennett Helm wrote: On Oct 26, 2006, at 2:32 PM, Bennett Helm wrote: On Oct 26, 2006, at 3:40 AM, Abdelrazak Younes wrote: ... As you can see in the second line, QLPainter::text() take the most time. This is not surprising but the following lines between this node an the following node at

Re: LyX/Mac 1.5.0, Qt 4.2.1 Profile

2006-10-27 Thread Abdelrazak Younes
Bennett Helm wrote: On Oct 26, 2006, at 3:40 AM, Abdelrazak Younes wrote: As you can see in the second line, QLPainter::text() take the most time. This is not surprising but the following lines between this node an the following node at the same level (LyXText::getFont()) don't make the sum.

Re: LyX/Mac 1.5.0, Qt 4.2.1 Profile

2006-10-27 Thread José Matos
On Friday 27 October 2006 10:38 am, Jean-Marc Lasgouttes wrote: > That was my question: isn't the font supposed to have 2^16 (2^32?) > characters? I think that the present unicode standard is set for 2^21 (and presently we only have defined ~ 100 000 chars). This is just for the record, it i

Re: LyX/Mac 1.5.0, Qt 4.2.1 Profile

2006-10-27 Thread Abdelrazak Younes
Jean-Marc Lasgouttes wrote: "Abdelrazak" == Abdelrazak Younes <[EMAIL PROTECTED]> writes: Do we really want to use a vector to cache unicode data? Abdelrazak> No, a vector to cache width (int) data. This is to replace Abdelrazak> the map font width, nothing to do with unicode. How large w

Re: LyX/Mac 1.5.0, Qt 4.2.1 Profile

2006-10-27 Thread Jean-Marc Lasgouttes
> "Abdelrazak" == Abdelrazak Younes <[EMAIL PROTECTED]> writes: >> Do we really want to use a vector to cache unicode data? Abdelrazak> No, a vector to cache width (int) data. This is to replace Abdelrazak> the map font width, nothing to do with unicode. >> How large will this vector be? A

Re: LyX/Mac 1.5.0, Qt 4.2.1 Profile

2006-10-27 Thread Abdelrazak Younes
Jean-Marc Lasgouttes wrote: "Abdelrazak" == Abdelrazak Younes <[EMAIL PROTECTED]> writes: Also, we can probably use something better than a map (I'm sure qt has nice hash tables) to store metrics. Abdelrazak> Or Andre's vector solution. I'll check it out. Do we really want to use a vector t

Re: LyX/Mac 1.5.0, Qt 4.2.1 Profile

2006-10-27 Thread Jean-Marc Lasgouttes
> "Abdelrazak" == Abdelrazak Younes <[EMAIL PROTECTED]> writes: >> Also, we can probably use something better than a map (I'm sure qt >> has nice hash tables) to store metrics. Abdelrazak> Or Andre's vector solution. I'll check it out. Do we really want to use a vector to cache unicode data?

Re: LyX/Mac 1.5.0, Qt 4.2.1 Profile

2006-10-27 Thread Abdelrazak Younes
Jean-Marc Lasgouttes wrote: "Bennett" == Bennett Helm <[EMAIL PROTECTED]> writes: Bennett> One more bit of information that might be useful: Shark can Bennett> show the amount of time specific lines of code use. Here is Bennett> what it shows in the relevant bit of QLPainter.C: Abdel, this sho

Re: LyX/Mac 1.5.0, Qt 4.2.1 Profile

2006-10-27 Thread Jean-Marc Lasgouttes
> "Bennett" == Bennett Helm <[EMAIL PROTECTED]> writes: Bennett> One more bit of information that might be useful: Shark can Bennett> show the amount of time specific lines of code use. Here is Bennett> what it shows in the relevant bit of QLPainter.C: Abdel, this shows that metrics computati

Re: LyX/Mac 1.5.0, Qt 4.2.1 Profile

2006-10-26 Thread Bennett Helm
On Oct 26, 2006, at 2:32 PM, Bennett Helm wrote: On Oct 26, 2006, at 3:40 AM, Abdelrazak Younes wrote: ... As you can see in the second line, QLPainter::text() take the most time. This is not surprising but the following lines between this node an the following node at the same level (LyX

Re: LyX/Mac 1.5.0, Qt 4.2.1 Profile

2006-10-26 Thread Bennett Helm
On Oct 26, 2006, at 3:40 AM, Abdelrazak Younes wrote: Bennett Helm wrote: Well, here is a profile for Mac. I created a new document with enough text to fill the screen, placed the (invisible) cursor in the middle of the screen, started profiling and typed at a brisk pace for 30 seconds. (A

Re: LyX/Mac 1.5.0, Qt 4.2.1 Profile

2006-10-26 Thread Abdelrazak Younes
Bennett Helm wrote: Well, here is a profile for Mac. I created a new document with enough text to fill the screen, placed the (invisible) cursor in the middle of the screen, started profiling and typed at a brisk pace for 30 seconds. (As I type this, LyX is still churning away displaying what I