unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Lars Hamren <hamren@sdu.se>
To: 7069@debbugs.gnu.org
Subject: bug#7069: Clarification
Date: Sun, 19 Sep 2010 20:32:02 +0200	[thread overview]
Message-ID: <4C965722.2010909@sdu.se> (raw)
In-Reply-To: <4C955B68.6000701@sdu.se>

The problem, as far as I can determine, is not that the compilation
process takes longer, but that buffer/window update is slow.

For long compilations, with output more than a few kB, output is
"chunky". Updates seem to be in multiples of 4 kB, with delays
between them. Running strace supports this assumption.

I tried this as a "compilation":

      time find /path/to/somewhere -ls

With "compile" (slow, chunky buffer update)

	real	0m30.488s
	user	0m0.032s
	sys	0m0.036s

With "shell-command" (immediate buffer update)

	real	0m0.027s
	user	0m0.020s
	sys	0m0.008s

 From Bash, not within emacs

	real    0m0.028s
	user    0m0.016s
	sys     0m0.012s

User and system times are effectively the same, but real
time differs by a factor of 1000.

/Lars Hamrén





  parent reply	other threads:[~2010-09-19 18:32 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-09-19  0:38 bug#7069: Compilation from within emacs becomes slower and slower until Emacs is restarted Lars Hamren
2010-09-19 18:14 ` bug#7069: Problem only with "compile", not with "shell-command" Lars Hamren
2010-09-19 18:32 ` Lars Hamren [this message]
2010-09-22  6:43 ` bug#7069: Compilation from within emacs becomes slower and slower until Emacs is restarted Jan Djärv
2010-10-28  2:42 ` Stefan Monnier
2011-04-20 10:04 ` Lars Hamren
2011-04-20 13:10   ` Stefan Monnier
2011-04-25  1:16     ` Daniel Colascione
2011-04-25 12:28       ` Stefan Monnier
2011-04-25 13:05         ` Lars Hamren

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=4C965722.2010909@sdu.se \
    --to=hamren@sdu.se \
    --cc=7069@debbugs.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).