1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-03-12 09:51:05 -07:00
emacs/lisp/international
Noam Postavsky 9d7973530f Optimize skkdic conversion (Bug#28043)
The primary speedup comes from the optimizing lookup-nested-alist and
set-nested-alist for the case where the key is a string.  This brings
the time down to less than half the original.

* lisp/international/mule-util.el (lookup-nested-alist)
(set-nested-alist): Use `assq' instead of `assoc' when KEYSEQ is a
string.

* lisp/international/ja-dic-cnv.el (skkdic-collect-okuri-nasi)
(skkdic-convert-okuri-nasi): Use progress-reporter functions instead
of calculating ratio of work done inline.

(skkdic-reduced-candidates): Call `char-category-set' on the first
character of the string directly, instead of using a regexp for the
character category.
(skkdic--japanese-category-set): New constant.
(skkdic-collect-okuri-nasi): Just set
`skkdic-okuri-nasi-entries-count' at once at the end rather than
updating it throughout the loop.

(skkdic-convert-postfix skkdic-convert-prefix)
skkdic-get-candidate-list, skkdic-collect-okuri-nasi)
(skkdic-extract-conversion-data): Use `match-string-no-properties'
instead of `match-string'.
2017-08-21 20:52:25 -04:00
..
ccl.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
characters.el Update Unicode data and files to Unicode 10.0 2017-07-08 13:02:47 +03:00
fontset.el Update Unicode data and files to Unicode 10.0 2017-07-08 13:02:47 +03:00
isearch-x.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
iso-ascii.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
iso-cvt.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
iso-transl.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
ja-dic-cnv.el Optimize skkdic conversion (Bug#28043) 2017-08-21 20:52:25 -04:00
ja-dic-utl.el Quoting fixes in lisp/international and lisp/leim 2015-08-30 23:12:31 -07:00
kinsoku.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
kkc.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
latexenc.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
latin1-disp.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
mule-cmds.el Don’t adjust CRLF in file names 2017-08-19 17:17:09 -07:00
mule-conf.el Unify CNS11643-15 in a way that avoids segfaults 2017-08-05 16:47:14 +03:00
mule-diag.el Use help-mode xrefs in describe-font 2017-08-08 19:57:24 -04:00
mule-util.el Optimize skkdic conversion (Bug#28043) 2017-08-21 20:52:25 -04:00
mule.el Allow local variables section to begin with a square bracket 2017-06-17 16:10:51 +02:00
ogonek.el Replace some uses of eval 2017-08-08 15:10:49 -04:00
quail.el Don't call the same hook twice due to obsolete aliases 2017-08-18 12:33:08 +03:00
rfc1843.el * lisp/international/rfc1843.el: Don't require CL. Use lexical-binding. 2017-05-23 09:18:26 -04:00
robin.el Don't call the same hook twice due to obsolete aliases 2017-08-18 12:33:08 +03:00
titdic-cnv.el Do not use find-file non-interactively 2017-02-28 21:12:59 +00:00
ucs-normalize.el Merge from origin/emacs-25 2017-01-01 01:10:47 -08:00
utf-7.el Update copyright year to 2017 2016-12-31 19:42:26 -08:00
utf7.el * lisp/international/utf7.el: Don't require CL. Use lexical-binding. 2017-05-23 09:12:06 -04:00