help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Tracking down why emacsclient -c is so slow


From: Alex Bennee
Subject: Re: Tracking down why emacsclient -c is so slow
Date: Sat, 22 Aug 2009 09:10:33 +0100

2009/8/21 Peter Dyballa <Peter_Dyballa@web.de>:
>
> Am 21.08.2009 um 20:25 schrieb Alex Bennee:
>
>> Are there any other hooks run between after-make-frame-functions and
>> server-visit-hook I can hook to to see why it takes so long?
>
>
> Yes, they're called PCI, PCI-Express, AGP, and much more. Stick another and
> faster graphics card in such a slot and you'll less consumed to create a new
> frame.
>

The current delays I'm seeing are a little excessive, especially
considering that the rest of the OS doesn't seem to have too much
problem displaying compiz and full-rate HD video.

The results of the profile look like:

Function Name                    Call Count  Elapsed Time  Average Time
===============================  ==========  ============  ============
make-frame                       2           17.385781     8.6928905
frame-set-background-mode        14          0.0370519999  0.0026465714
frame-parameters                 54          0.0008449999  1.564...e-05
frame-parameter                  494         0.0007000000  1.417...e-06
framep                           956         0.0004720000  4.937...e-07
frame-list                       429         0.0003700000  8.624...e-07
frame-or-buffer-changed-p        39          0.0001459999  3.743...e-06
framep-on-display                202         0.0001409999  6.980...e-07
frame-selected-window            46          5.799...e-05  1.260...e-06
frame-live-p                     58          4.599...e-05  7.931...e-07
frame-visible-p                  53          2.800...e-05  5.283...e-07
frame-char-width                 13          1.200...e-05  9.230...e-07
frame-char-height                14          1.199...e-05  8.571...e-07

I thought I'd throw oprofile at the task but as far as it's concerned
emacs spends most of it's time in mark-object and Fbyte_code and isn't
actually a significant proportion of the CPU time. Something else
seems to be going on.

-- 
Alex, homepage: http://www.bennee.com/~alex/
http://www.half-llama.co.uk




reply via email to

[Prev in Thread] Current Thread [Next in Thread]