emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] 124/352: Tehostetaan sanojen lukemista


From: Stefan Monnier
Subject: [elpa] 124/352: Tehostetaan sanojen lukemista
Date: Mon, 07 Jul 2014 14:03:09 +0000

monnier pushed a commit to branch master
in repository elpa.

commit b0ef1a42179b37b571084d61d8872a433e88751f
Author: Teemu Likonen <address@hidden>
Date:   Fri Jul 24 08:30:42 2009 +0000

    Tehostetaan sanojen lukemista
    
    Lisp-kielessä on paljon hitaampaa lisätä elementtejä listan loppuun kuin
    listan alkuun. Aiemmin puskurista luetut sanat kerättiin listamuuttujan
    perään, mikä on siis hitaampaa. Koska tässä tapauksessa sanojen
    järjestyksellä ei ole mitään väliä, tehostetaan toimintaa lisäämällä
    luetut sanat listamuuttujan alkuun.
---
 wcheck-mode.el |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)

diff --git a/wcheck-mode.el b/wcheck-mode.el
index 991d5d1..de196a6 100644
--- a/wcheck-mode.el
+++ b/wcheck-mode.el
@@ -783,9 +783,7 @@ elements between BEG and END; all hidden parts are omitted."
                            (not (string-match
                                  discard (match-string-no-properties 1))))
                        ;; Add the match to the word list.
-                       (add-to-list 'words
-                                    (match-string-no-properties 1)
-                                    'append)))
+                       (add-to-list 'words (match-string-no-properties 1))))
                 (setq old-point (point)))))
           words)))))
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]