all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* bug#18713: Very slow startups with TERM=xterm
@ 2014-10-13 23:00 Roy Smith
  2014-10-14  6:21 ` Eli Zaretskii
  0 siblings, 1 reply; 6+ messages in thread
From: Roy Smith @ 2014-10-13 23:00 UTC (permalink / raw)
  To: 18713

[-- Attachment #1: Type: text/plain, Size: 1167 bytes --]

I'm running GNU Emacs 24.3.1, with the -nw flag.  If have TERM=xterm or TERM=xterm-256color, it takes 2 or 3 seconds to start up.  Setting TERM=ansi (or vt100, or vt102), I get instant startups.  I'm running on goobuntu (Google's own flavor of ubuntu linux)

Tracing the emacs process as it starts up, I see that all the time is spent in a set of select() calls (fd 3 is "/dev/tty" at this point):

15215 pselect6(4, [3], [], NULL, {1, 996360390}, {NULL, 8}) = 1 (in [3], left {1, 980201052}) <0.016169>
15215 pselect6(4, [3], [], NULL, {1, 999612379}, {NULL, 8}) = 0 (Timeout) <2.001673>
15215 pselect6(4, [3], [], NULL, {0, 499948991}, {NULL, 8}) = 0 (Timeout) <0.500516>
15215 pselect6(4, [3], [], NULL, {27, 497597665}, {NULL, 8}) = 1 (in [3], left {27, 83731691}) <0.413916>
15215 pselect6(4, [3], [], NULL, {0, 499864020}, {NULL, 8}) = 1 (in [3], left {0, 287729575}) <0.212174>
Based on the write() calls I see to fd 3 immediately before this, it looks like it's in the process of initializing the screen.  Does this sound like I'm running into http://lists.gnu.org/archive/html/bug-gnu-emacs/2013-06/msg00362.html?

--
Roy Smith
roy@panix.com


[-- Attachment #2: Type: text/html, Size: 2861 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2018-06-06  0:11 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-13 23:00 bug#18713: Very slow startups with TERM=xterm Roy Smith
2014-10-14  6:21 ` Eli Zaretskii
2014-10-14 14:33   ` Roy Smith
2014-10-14 23:44     ` Stefan Monnier
2018-06-06  0:11       ` Noam Postavsky
2014-10-14 23:45     ` Stefan Monnier

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.