unofficial mirror of emacs-devel@gnu.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 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).