Re: Profile on PPC Mac

2006-11-17 Thread Abdelrazak Younes
Bennett Helm wrote: On Nov 17, 2006, at 2:40 AM, Abdelrazak Younes wrote: Bennett Helm wrote: As promised, here's the profile for LyX-1.5 on PPC Mac. I've attached the report text to this e-mail, and placed the QLPainter screen grab here:

Re: Profile on PPC Mac

2006-11-17 Thread Bennett Helm
On Nov 17, 2006, at 2:40 AM, Abdelrazak Younes wrote: Bennett Helm wrote: As promised, here's the profile for LyX-1.5 on PPC Mac. I've attached the report text to this e-mail, and placed the QLPainter screen grab here: Thanks

Re: Profile on PPC Mac

2006-11-16 Thread Abdelrazak Younes
Bennett Helm wrote: As promised, here's the profile for LyX-1.5 on PPC Mac. I've attached the report text to this e-mail, and placed the QLPainter screen grab here: Thanks you Bennett. Looks like Qt4's QPainter::drawText remains

Re: Profile: LyX/Mac 1.5.0svn Qt-4.1.3 -- Typing

2006-06-07 Thread Andre Poenitz
On Wed, May 31, 2006 at 11:23:59AM +0200, Jean-Marc Lasgouttes wrote: > > "Abdelrazak" == Abdelrazak Younes <[EMAIL PROTECTED]> writes: > > Abdelrazak> I have been experimenting using a QPicture "cache" inside > Abdelrazak> QLPainter instead of drawing directly to the pixmap for > Abdelrazak>

Re: Profile: LyX/Mac 1.5.0svn Qt-4.1.3 -- Typing

2006-05-31 Thread Abdelrazak Younes
Jean-Marc Lasgouttes wrote: "Abdelrazak" == Abdelrazak Younes <[EMAIL PROTECTED]> writes: Abdelrazak> I have been experimenting using a QPicture "cache" inside Abdelrazak> QLPainter instead of drawing directly to the pixmap for Abdelrazak> each operation. The purpose of a QPicture is to record

Re: Profile: LyX/Mac 1.5.0svn Qt-4.1.3 -- Typing

2006-05-31 Thread Jean-Marc Lasgouttes
> "Abdelrazak" == Abdelrazak Younes <[EMAIL PROTECTED]> writes: Abdelrazak> I have been experimenting using a QPicture "cache" inside Abdelrazak> QLPainter instead of drawing directly to the pixmap for Abdelrazak> each operation. The purpose of a QPicture is to record Abdelrazak> painting oper

Re: Profile: LyX/Mac 1.5.0svn Qt-4.1.3 -- Typing

2006-05-31 Thread Abdelrazak Younes
Bennett Helm wrote: On May 29, 2006, at 12:52 PM, Bennett Helm wrote: I've tried it with 1.4/qt3 on Mac. It seems to help in two respects: 1. scrolling speed gives me an improvement similar to what Abdel reported: 39 seconds down to 35. 2. although typing doesn't lag on either version, with

Re: Profile: LyX/Mac 1.5.0svn Qt-4.1.3 -- Typing

2006-05-30 Thread Bennett Helm
On May 29, 2006, at 12:52 PM, Bennett Helm wrote: I've tried it with 1.4/qt3 on Mac. It seems to help in two respects: 1. scrolling speed gives me an improvement similar to what Abdel reported: 39 seconds down to 35. 2. although typing doesn't lag on either version, without the patch I ca

Re: Profile: LyX/Mac 1.5.0svn Qt-4.1.3 -- Typing

2006-05-30 Thread Andre Poenitz
On Thu, May 25, 2006 at 11:31:43PM +0200, Abdelrazak Younes wrote: > I see that there is a lot of improvement compared to your former profile > WRT qt4 frontends. Do you feel the improve in speed? > AFAICS the clear culprit is again font_metrics::width(). This is true > for your first three patch

Re: Profile: LyX/Mac 1.5.0svn Qt-4.1.3 -- Typing

2006-05-29 Thread Abdelrazak Younes
Jean-Marc Lasgouttes wrote: "Bennett" == Bennett Helm <[EMAIL PROTECTED]> writes: Bennett> On May 25, 2006, at 6:39 PM, Abdelrazak Younes wrote: I have enabled the font width caching in the qt4 frontend. Under windows I have a 5 seconds improvements when scrolling the UserGuide with pageDown (

Re: Profile: LyX/Mac 1.5.0svn Qt-4.1.3 -- Typing

2006-05-29 Thread Bennett Helm
On May 29, 2006, at 12:15 PM, Jean-Marc Lasgouttes wrote: "Bennett" == Bennett Helm <[EMAIL PROTECTED]> writes: Bennett> On May 25, 2006, at 6:39 PM, Abdelrazak Younes wrote: I have enabled the font width caching in the qt4 frontend. Under windows I have a 5 seconds improvements when scrollin

Re: Profile: LyX/Mac 1.5.0svn Qt-4.1.3 -- Typing

2006-05-29 Thread Jean-Marc Lasgouttes
> "Jean-Marc" == Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: Jean-Marc> So the next question is: what does the following patch does Jean-Marc> to 1.5/qt3 (or 1.4/qt3) in LyX/Mac? I remember that at the Jean-Marc> time I found caching did not help on linux but it may be Jean-Marc> that I w

Re: Profile: LyX/Mac 1.5.0svn Qt-4.1.3 -- Typing

2006-05-29 Thread Jean-Marc Lasgouttes
> "Bennett" == Bennett Helm <[EMAIL PROTECTED]> writes: Bennett> On May 25, 2006, at 6:39 PM, Abdelrazak Younes wrote: >> I have enabled the font width caching in the qt4 frontend. Under >> windows I have a 5 seconds improvements when scrolling the >> UserGuide with pageDown (35 instead of 40)

Re: Profile: LyX/Mac 1.5.0svn Qt-4.1.3 -- Typing

2006-05-26 Thread Abdelrazak Younes
Bennett Helm wrote: On May 26, 2006, at 9:39 AM, Abdelrazak Younes wrote: Bennett Helm wrote: On May 25, 2006, at 6:39 PM, Abdelrazak Younes wrote: I have enabled the font width caching in the qt4 frontend. Under windows I have a 5 seconds improvements when scrolling the UserGuide with page

Re: Profile: LyX/Mac 1.5.0svn Qt-4.1.3 -- Typing

2006-05-26 Thread Bennett Helm
On May 26, 2006, at 9:39 AM, Abdelrazak Younes wrote: Bennett Helm wrote: On May 25, 2006, at 6:39 PM, Abdelrazak Younes wrote: I have enabled the font width caching in the qt4 frontend. Under windows I have a 5 seconds improvements when scrolling the UserGuide with pageDown (35 instead of

Re: Profile: LyX/Mac 1.5.0svn Qt-4.1.3 -- Typing

2006-05-26 Thread Abdelrazak Younes
Bennett Helm wrote: On May 25, 2006, at 6:39 PM, Abdelrazak Younes wrote: I have enabled the font width caching in the qt4 frontend. Under windows I have a 5 seconds improvements when scrolling the UserGuide with pageDown (35 instead of 40). Could you SVN update and try this please? Wow! T

Re: Profile: LyX/Mac 1.5.0svn Qt-4.1.3 -- Typing

2006-05-26 Thread Abdelrazak Younes
Bennett Helm wrote: On May 25, 2006, at 6:39 PM, Abdelrazak Younes wrote: I have enabled the font width caching in the qt4 frontend. Under windows I have a 5 seconds improvements when scrolling the UserGuide with pageDown (35 instead of 40). Could you SVN update and try this please? Wow! T

Re: Profile: LyX/Mac 1.5.0svn Qt-4.1.3 -- Typing

2006-05-26 Thread Abdelrazak Younes
Bennett Helm wrote: [To the list this time!] On May 25, 2006, at 5:31 PM, Abdelrazak Younes wrote: Bennett Helm wrote: This profile was generated by simply typing into the middle of a large document for 30 seconds. I see that there is a lot of improvement compared to your former profile WR

Re: Profile: LyX/Mac 1.5.0svn Qt-4.1.3 -- Typing

2006-05-26 Thread Bennett Helm
[To the list this time!] On May 25, 2006, at 5:31 PM, Abdelrazak Younes wrote: Bennett Helm wrote: This profile was generated by simply typing into the middle of a large document for 30 seconds. I see that there is a lot of improvement compared to your former profile WRT qt4 frontends. Do

Re: Profile: LyX/Mac 1.5.0svn Qt-4.1.3 -- Typing

2006-05-26 Thread Abdelrazak Younes
Jean-Marc Lasgouttes wrote: "Abdelrazak" == Abdelrazak Younes <[EMAIL PROTECTED]> writes: Abdelrazak> I have enabled the font width caching in the qt4 frontend. Abdelrazak> Under windows I have a 5 seconds improvements when Abdelrazak> scrolling the UserGuide with pageDown (35 inst

Re: Profile: LyX/Mac 1.5.0svn Qt-4.1.3 -- Typing

2006-05-26 Thread Jean-Marc Lasgouttes
> "Abdelrazak" == Abdelrazak Younes <[EMAIL PROTECTED]> writes: Abdelrazak> I have enabled the font width caching in the qt4 frontend. Abdelrazak> Under windows I have a 5 seconds improvements when Abdelrazak> scrolling the UserGuide with pageDown (35 instead of 40). If you go this route and

Re: Profile: LyX/Mac 1.5.0svn Qt-4.1.3 -- Typing

2006-05-25 Thread Abdelrazak Younes
Abdelrazak Younes wrote: Bennett Helm wrote: This profile was generated by simply typing into the middle of a large document for 30 seconds. I see that there is a lot of improvement compared to your former profile WRT qt4 frontends. Do you feel the improve in speed? AFAICS the clear culprit i

Re: Profile: LyX/Mac 1.5.0svn Qt-4.1.3 -- Scrolling (drag scroll bar)

2006-05-25 Thread Abdelrazak Younes
Bennett Helm wrote: Produced by dragging the scroll bar down to the bottom on the User's Guide. (It completed this -- by jumping to the bottom -- in about 20 seconds.) This one is very interesting but very difficult to read... It seems there are some mis-communication between the kernel using

Re: Profile: LyX/Mac 1.5.0svn Qt-4.1.3 -- Typing

2006-05-25 Thread Abdelrazak Younes
Bennett Helm wrote: This profile was generated by simply typing into the middle of a large document for 30 seconds. I see that there is a lot of improvement compared to your former profile WRT qt4 frontends. Do you feel the improve in speed? AFAICS the clear culprit is again font_metrics::widt

Re: profile

2003-10-17 Thread Lars Gullik Bjønnes
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: | Note that this 2.1% should even be useless, since all the FileSearch | calls seem to use paths that should not contain environment variables | as far as I can see. We could probably just make sure in | path_defines.C that variables are replaced in

Re: profile

2003-10-17 Thread Lars Gullik Bjønnes
Jean-Marc Lasgouttes <[EMAIL PROTECTED]> writes: >> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: > | Lars> Right. The regex machinery is compiling the regex stirng into a | Lars> state machine, so this should only be done once (static). > | So we should do that for all regex uses,

Re: profile

2003-10-17 Thread Jean-Marc Lasgouttes
> "Andre" == Andre Poenitz <[EMAIL PROTECTED]> writes: Andre> On Thu, Oct 16, 2003 at 06:34:54PM +0200, Jean-Marc Lasgouttes Andre> wrote: >> > "Andre" == Andre Poenitz <[EMAIL PROTECTED]> writes: >> Andre> So 'lyx::support::ReplaceEnvironmentPath' curently wastes about Andre> 20% of the

Re: profile

2003-10-17 Thread Andre Poenitz
On Fri, Oct 17, 2003 at 09:37:04AM +0200, Asger Kunuk Alstrup wrote: > To profile scrolling speed, I usually just open the user guide, hold page > down until the end of the document, and then end. > Or, if it is mouse scrolling, then just do that. But it's hard to get the same numbers for two diff

Re: profile

2003-10-17 Thread Jean-Marc Lasgouttes
> "Lars" == Lars Gullik Bjønnes <[EMAIL PROTECTED]> writes: Lars> Right. The regex machinery is compiling the regex stirng into a Lars> state machine, so this should only be done once (static). So we should do that for all regex uses, right? JMarc

Re: profile

2003-10-17 Thread Asger Kunuk Alstrup
To profile scrolling speed, I usually just open the user guide, hold page down until the end of the document, and then end. Or, if it is mouse scrolling, then just do that. It's not completely accurate, but it is good enough to find the bottlenecks. Regards, ASger

Re: profile

2003-10-16 Thread Alfredo Braunstein
Andre Poenitz wrote: > Not tested (how would I get real numbers?) > > I don't expect it to be worse, though. I was actually expecting it to be better with your per-paragraph y caching. I'll make some profiling later if I get the energy. Alfredo

Re: profile

2003-10-16 Thread John Levon
On Thu, Oct 16, 2003 at 06:49:55PM +0200, Andre Poenitz wrote: > Not tested (how would I get real numbers?) scroll event - start timer end of document - end timer a hack like that would probably work john -- Khendon's Law: If the same point is made twice by the same person, the thread is ove

Re: profile

2003-10-16 Thread Lars Gullik Bjønnes
Andre Poenitz <[EMAIL PROTECTED]> writes: | On Thu, Oct 16, 2003 at 06:34:54PM +0200, Jean-Marc Lasgouttes wrote: >> > "Andre" == Andre Poenitz <[EMAIL PROTECTED]> writes: >> >> Andre> So 'lyx::support::ReplaceEnvironmentPath' curently wastes about >> Andre> 20% of the time used by lyx startu

Re: profile

2003-10-16 Thread Andre Poenitz
On Thu, Oct 16, 2003 at 06:46:32PM +0200, Alfredo Braunstein wrote: > Andre Poenitz wrote: > > > On Thu, Oct 16, 2003 at 06:38:37PM +0200, Andre' Poenitz wrote: > >> Setting up the patterns just one cuts this from 20% down to 2.1%. > > > > Incidently, with this patch we are back at 1.3 speed: >

Re: profile

2003-10-16 Thread Angus Leeming
Andre Poenitz wrote: > On Thu, Oct 16, 2003 at 06:34:54PM +0200, Jean-Marc Lasgouttes > wrote: >> > "Andre" == Andre Poenitz <[EMAIL PROTECTED]> writes: >> >> Andre> So 'lyx::support::ReplaceEnvironmentPath' curently wastes >> about Andre> 20% of the time used by lyx startup + UserGuide >> lo

Re: profile

2003-10-16 Thread Alfredo Braunstein
Andre Poenitz wrote: > On Thu, Oct 16, 2003 at 06:38:37PM +0200, Andre' Poenitz wrote: >> Setting up the patterns just one cuts this from 20% down to 2.1%. > > Incidently, with this patch we are back at 1.3 speed: Cool! How about scrolling speed? Alfredo

Re: profile

2003-10-16 Thread Andre Poenitz
On Thu, Oct 16, 2003 at 06:38:37PM +0200, Andre' Poenitz wrote: > Setting up the patterns just one cuts this from 20% down to 2.1%. Incidently, with this patch we are back at 1.3 speed: # time lyx13 -x 'command-sequence file-open UserGuide-1.3.lyx ; lyx-quit;' real0m0.961s user0m0.780s

Re: profile

2003-10-16 Thread Andre Poenitz
On Thu, Oct 16, 2003 at 06:34:54PM +0200, Jean-Marc Lasgouttes wrote: > > "Andre" == Andre Poenitz <[EMAIL PROTECTED]> writes: > > Andre> So 'lyx::support::ReplaceEnvironmentPath' curently wastes about > Andre> 20% of the time used by lyx startup + UserGuide loading. > > Andre> This does not

Re: profile

2003-10-16 Thread Jean-Marc Lasgouttes
> "Andre" == Andre Poenitz <[EMAIL PROTECTED]> writes: Andre> So 'lyx::support::ReplaceEnvironmentPath' curently wastes about Andre> 20% of the time used by lyx startup + UserGuide loading. Andre> This does not seem right. Indeed. Andre> Does anybody feel a bit guilty? Could you show us th