From: Jeff Clough <jeff@chaosphere.com>
To: help-gnu-emacs@gnu.org
Subject: Lisp Questions - reading a file and processes stalling
Date: Sun, 21 Mar 2010 20:41:57 -0400 [thread overview]
Message-ID: <m3fx3tgpbe.fsf@logrus.localdomain> (raw)
I've got a few questions I'm hoping someone here can answer.
First, what is the lightest weight way of getting the contents of a file
into a buffer? Stepping through insert-file-contents and
format-insert-file (with the requisite nil) seems to involve huge
numbers of calls and a lot of winding/unwinding the stack. I have a
function that wants to open thousands of files, examine them then put
them away. This is obviously slow and I'm wondering if I made some
boneheaded error in using these functions in the first place. To be
fair, my code is slow for reasons other than this, but I'm taking one
lump of molasses at a time.
Second, I have Emacs running an external program as a process. When
some other lengthy operation is happening elsewhere in Emacs (like Gnus
is trying to display the headers for a group*), that process stalls,
then picks up where it left off once the operation is done. Is there
any way to make Emacs not steal the resources from this process, or am I
doing something hopelessly wrong?
* - Yes, I'm running Gnus now. Those who remember my earlier rantings
can feel free to slap me around. I still hate it, but it's proven
to be better than Mew.
Jeff
next reply other threads:[~2010-03-22 0:41 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-03-22 0:41 Jeff Clough [this message]
2010-03-22 2:20 ` Lisp Questions - reading a file and processes stalling Pascal J. Bourguignon
2010-03-22 3:22 ` Jeff Clough
2010-03-22 16:02 ` Stefan Monnier
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=m3fx3tgpbe.fsf@logrus.localdomain \
--to=jeff@chaosphere.com \
--cc=help-gnu-emacs@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.
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).