all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Major slowdown in set-buffer-multibyte
@ 2008-02-25 15:32 Stefan Monnier
  0 siblings, 0 replies; only message in thread
From: Stefan Monnier @ 2008-02-25 15:32 UTC (permalink / raw)
  To: emacs-devel


I recently tried to open a zip file (6MB, nothing enormous), and it took
me a while (1minute).  Now, admittedly, I have all kinds of assertions
and de-optimizations enabled, so I recompiled the trunk normally to
check it wasn't my own fault, and the problem is still present.
ELP tells me that set-buffer-multibyte is called twice and that the two
calls take a total of 9s, with Emacs-22 opening the file is instantaneous.

By hitting C-g a few times it seems that the problem is in the
(set-buffer-multibyte 'to) call (i.e. converting from unibyte to
singlebyte rather than the other way around).

Could someone look into it?


        Stefan




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-02-25 15:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-02-25 15:32 Major slowdown in set-buffer-multibyte 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.