unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* Inefficient code in ispell.el
@ 2005-06-06 12:06 Kim F. Storm
  2005-06-06 16:37 ` Richard Stallman
  0 siblings, 1 reply; 2+ messages in thread
From: Kim F. Storm @ 2005-06-06 12:06 UTC (permalink / raw)
  Cc: emacs-devel


I noticed the following code in ispell.el

			(progn
			  (setq key (buffer-substring-no-properties
				     (car (match-data))
				     (car (cdr (match-data)))))

Using match-data like that is VERY inefficient.

I suggest using match-string-no-properties instead, or
at least match-beginning/match-end.

-- 
Kim F. Storm <storm@cua.dk> http://www.cua.dk

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

* Re: Inefficient code in ispell.el
  2005-06-06 12:06 Inefficient code in ispell.el Kim F. Storm
@ 2005-06-06 16:37 ` Richard Stallman
  0 siblings, 0 replies; 2+ messages in thread
From: Richard Stallman @ 2005-06-06 16:37 UTC (permalink / raw)
  Cc: k.stevens, emacs-devel

I will fix that.

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

end of thread, other threads:[~2005-06-06 16:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-06-06 12:06 Inefficient code in ispell.el Kim F. Storm
2005-06-06 16:37 ` Richard Stallman

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).