Inefficient code in ispell.el

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Inefficient code in ispell.el

Kim Storm

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 <[hidden email]> http://www.cua.dk



_______________________________________________
Emacs-devel mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/emacs-devel
Reply | Threaded
Open this post in threaded view
|

Re: Inefficient code in ispell.el

Richard Stallman
I will fix that.


_______________________________________________
Emacs-devel mailing list
[hidden email]
http://lists.gnu.org/mailman/listinfo/emacs-devel