From: Dave Milter <davemilter@gmail.com>
To: Alan Mackenzie <acm@muc.de>, emacs-devel@gnu.org
Subject: c mode still slow?
Date: Mon, 21 Mar 2011 15:40:51 +0300 [thread overview]
Message-ID: <AANLkTik7+9SY573LwAnbHGko4m0=W0NyMyGS-4Ni3_Ky@mail.gmail.com> (raw)
Hi, Alan and all.
Year or two ago I wrote email about emacs usage for C/C++ coding, how
it is painfully slow.
Any progress since then?
At now I have GNU Emacs 23.3.1 on Linux.
I open two files: one with defines, and another with functions, and
get such results:
font-lock-fontify-region 4
41.44931 10.3623275
font-lock-default-fontify-region 4
41.44925 10.3623125
font-lock-fontify-keywords-region 4
41.436062 10.3590155
font-lock-fontify-syntactically-region 4
0.0126299999 0.0031574999
font-lock-extend-region-wholelines 4
0.0003000000 7.500...e-05
font-lock-mode 5
8.8e-05 1.76e-05
font-lock-unfontify-region 4
6.3e-05 1.575e-05
font-lock-change-mode 2
5.7e-05 2.85e-05
font-lock-default-function 5
2.800...e-05 5.600...e-06
font-lock-default-unfontify-region 4
1.399...e-05 3.499...e-06
font-lock-extend-region-multiline 4
1.1e-05 2.75e-06
font-lock-set-defaults 4
9e-06 2.25e-06
font-lock-fontify-region 129
38.551784999 0.2988510465
font-lock-default-fontify-region 129
38.549996 0.2988371782
font-lock-fontify-keywords-region 129
38.367797999 0.2974247906
font-lock-fontify-syntactically-region 129
0.174543 0.0013530465
font-lock-unfontify-region 129
0.0017679999 1.370...e-05
font-lock-default-unfontify-region 129
0.0004499999 3.488...e-06
font-lock-set-defaults 129
0.0003079999 2.387...e-06
font-lock-extend-region-wholelines 129
0.0002979999 2.310...e-06
font-lock-extend-region-multiline 129
0.0002949999 2.286...e-06
font-lock-mode 1
1.9e-05 1.9e-05
font-lock-default-function 1
5e-06 5e-06
As you can see it take ages to show me content, and it still painfully
to work with such slow editor.
But of course without highlighting types and function names work is
also painful.
I wonder, may it is possible to process code into background, to allow
user work without any delay?
next reply other threads:[~2011-03-21 12:40 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-03-21 12:40 Dave Milter [this message]
2011-03-21 13:37 ` c mode still slow? Eli Zaretskii
2011-03-21 19:41 ` Alan Mackenzie
2011-03-22 22:25 ` Alan Mackenzie
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='AANLkTik7+9SY573LwAnbHGko4m0=W0NyMyGS-4Ni3_Ky@mail.gmail.com' \
--to=davemilter@gmail.com \
--cc=acm@muc.de \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).