aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/ChangeLog
diff options
context:
space:
mode:
authorMichal Nazarewicz2014-06-05 16:41:32 +0200
committerMichal Nazarewicz2014-06-05 16:41:32 +0200
commitdf344ab435c04aea5bb9261e6d2c349ab8f4fcea (patch)
tree21cf280112e529fbdccb722e27a80ef1e881c374 /lisp/ChangeLog
parenteb54c73a9d26325f691589a0dce561b124a50c70 (diff)
downloademacs-df344ab435c04aea5bb9261e6d2c349ab8f4fcea.tar.gz
emacs-df344ab435c04aea5bb9261e6d2c349ab8f4fcea.zip
tildify.el: Optimise environments regexes
* lisp/textmodes/tildify.el (tildify-ignored-environments-alist): Each time beginning of an environment to ignore is found, `tildify-find-env' needs to identify regexp for the ending of the environment. This is done by trying all the opening regexes on matched text in a loop, so to speed that up, this loop should have fewer things to match, which can be done by using alternatives in the opening regexes. Coincidentally, this should make matching of the opening regexp faster as well thanks to the use of `regexp-opt' and having common prefix pulled from many regexes.
Diffstat (limited to 'lisp/ChangeLog')
-rw-r--r--lisp/ChangeLog14
1 files changed, 14 insertions, 0 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index f8ed1dced82..1a6b1cd517c 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,19 @@
12014-06-05 Michal Nazarewicz <mina86@mina86.com> 12014-06-05 Michal Nazarewicz <mina86@mina86.com>
2 2
3 * textmodes/tildify.el (tildify-ignored-environments-alist):
4 Optimise environments regexes
5
6 Each time beginning of an environment to ignore is found,
7 `tildify-find-env' needs to identify regexp for the ending
8 of the environment. This is done by trying all the opening
9 regexes on matched text in a loop, so to speed that up, this
10 loop should have fewer things to match, which can be done by
11 using alternatives in the opening regexes.
12
13 Coincidentally, this should make matching of the opening
14 regexp faster as well thanks to the use of `regexp-opt' and
15 having common prefix pulled from many regexes.
16
3 * textmodes/tildify.el (tildify-string-alist) 17 * textmodes/tildify.el (tildify-string-alist)
4 (tildify-ignored-environments-alist): Add `nxml-mode' to the list 18 (tildify-ignored-environments-alist): Add `nxml-mode' to the list
5 of supported modes since `xml-mode' is no longer a thing but just 19 of supported modes since `xml-mode' is no longer a thing but just