From: "Dave Milter" <davemilter@gmail.com>
To: emacs-devel@gnu.org
Subject: open large file with C code: is it realy should be so slow?
Date: Mon, 1 Dec 2008 13:01:08 +0300 [thread overview]
Message-ID: <2a382c6e0812010201h7a2507fbg66a38f392d9837a9@mail.gmail.com> (raw)
I have problem with emacs responsibility,
I work with large enough C header files,
and when I want to scroll it using mouse's wheel or
page (up|down) keys emacs stop react on any keys, like (ctrl+g),
and eats 100% of CPU's time during long period,
I wonder is this a bug, or expected behaviour?
My cpu frequnce is 2200.000MHz.
elp results are:
Function Name Call Count
Elapsed Time Average Time
========================================================= ==========
============ ============
font-lock-fontify-region 387
14.909457999 0.0385257312
font-lock-default-fontify-region 387
14.904738000 0.0385135348
font-lock-fontify-keywords-region 387
14.469801 0.0373896666
font-lock-fontify-syntactically-region 384
0.4169809999 0.0010858880
font-lock-unfontify-region 387
0.0036489999 9.428...e-06
font-lock-mode 17
0.0036209999 0.0002129999
font-lock-set-defaults 390
0.0035869999 9.197...e-06
font-lock-default-function 17
0.0033780000 0.0001987058
font-lock-mode-internal 3
0.00324 0.00108
font-lock-compile-keywords 3
0.002872 0.0009573333
font-lock-compile-keyword 60
0.0027359999 4.559...e-05
font-lock-extend-region-multiline 387
0.0010560000 2.728...e-06
font-lock-default-unfontify-region 387
0.0010289999 2.658...e-06
font-lock-extend-region-wholelines 387
0.0008740000 2.258...e-06
font-lock-extend-jit-lock-region-after-change 103
0.0007060000 6.854...e-06
font-lock-turn-on-thing-lock 3
0.00034 0.0001133333
font-lock-change-mode 5
0.000144 2.880...e-05
font-lock-eval-keywords 4
2.7e-05 6.75e-06
font-lock-value-in-major-mode 8
9e-06 1.125e-06
cc-imenu-init 1
7e-06 7e-06
font-lock-append-text-property 1
6e-06 6e-06
font-lock-choose-keywords 2
4.999...e-06 2.499...e-06
Version:
GNU Emacs 22.3.1 (i686-pc-linux-gnu, GTK+ Version 2.12.8)
I tried Visual C++ 6.0 under wine,
and gvim, and they works without any delays,
highlight syntax and allow scrolling.
If somebody wnat reproduce this behaviour,
here is link to source code with which I working:
http://www.atmel.com/dyn/resources/prod_documents/AT91Bootstrap1.10.zip
there are files in it like
include/AT91SAM9263_inc.h
it contains around 4000 lines of code,
most of which is comments or #define
next reply other threads:[~2008-12-01 10:01 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-01 10:01 Dave Milter [this message]
2008-12-01 12:37 ` open large file with C code: is it realy should be so slow? Alan Mackenzie
2009-01-04 22:07 ` Dave Milter
2009-01-04 23:31 ` Alan Mackenzie
2009-11-01 17:01 ` Dave Milter
2009-01-06 0:01 ` Richard M Stallman
2009-01-06 5:52 ` Chong Yidong
2009-01-06 22:59 ` Richard M Stallman
2009-01-07 1:16 ` Chong Yidong
2009-01-08 11:37 ` Richard M Stallman
2009-01-08 12:42 ` Alan Mackenzie
2009-01-06 19:03 ` Alan Mackenzie
2009-01-06 21:50 ` Stefan Monnier
2009-12-04 15:25 ` Alan Mackenzie
2009-12-19 10:51 ` Dave Milter
2009-12-27 10:33 ` Dave Milter
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=2a382c6e0812010201h7a2507fbg66a38f392d9837a9@mail.gmail.com \
--to=davemilter@gmail.com \
--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).