1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-02-08 08:43:52 -08:00
emacs/test/lisp
Mattias Engdegård 7c1c251916 Calc: speed up math-read-preprocess-string (bug#67536)
`math-read-preprocess-string` is one of the bottlenecks of `calc-eval`
and was unnecessarily slow even with no substitutions made.
This affected org-mode in particular, where `calc-eval` is called
repeatedly to recalculate tables.

Reported by Raffael Stocker who also wrote the unit tests here.

* lisp/calc/calc-aent.el (math--read-preprocess-re-cache): New.
(math-read-preprocess-string):
Use math--read-preprocess-re-cache, first computing it if necessary.
* test/lisp/calc/calc-tests.el (calc-math-read-preprocess-string):
New test.
2023-12-19 17:11:07 +01:00
..
align-resources Support lua-ts-mode in align.el 2023-10-21 12:25:25 +02:00
auth-source-resources
bookmark-resources
calc Calc: speed up math-read-preprocess-string (bug#67536) 2023-12-19 17:11:07 +01:00
calendar Revert "Mark two tests as expensive" 2023-09-16 19:09:04 +02:00
cedet Split up tests in bovine/gcc-tests.el 2023-08-28 22:07:23 +02:00
custom-resources
dired-resources/insert-directory
emacs-lisp ; Fix typos 2023-12-10 13:22:04 +01:00
emulation
epg-resources
erc Add erc-track integration to erc-nicks 2023-12-17 20:17:55 -08:00
eshell ; Fix typos 2023-12-10 13:22:04 +01:00
faces-resources
files-resources
gnus Merge from origin/emacs-29 2023-10-28 05:06:21 -04:00
hfy-cmap-resources
image Revert "Fix image-dired-utils-tests after 83b6a8a514 (bug#61394)" 2023-08-03 11:40:44 +03:00
international Merge from origin/emacs-29 2023-12-09 07:25:21 -05:00
loadhist-resources
mail
mh-e MH-E testing: find locally-installed GNU Mailutils libraries 2023-11-03 15:24:21 -07:00
minibuffer-resources
net New macro connection-local-p 2023-12-12 17:39:51 +01:00
nxml
obsolete
org
pcmpl-linux-resources
play
progmodes Merge from origin/emacs-29 2023-12-16 09:17:51 -05:00
saveplace-resources
so-long-tests
term
textmodes Fix font locking of booleans in conf-toml-mode 2023-08-01 14:39:30 +02:00
time-resources
url
use-package
vc Use new ERT skip-when macro in tests 2023-09-04 18:25:18 +02:00
xdg-resources
abbrev-tests.el
align-tests.el ; * test/lisp/align-tests.el: Pacify warning. 2023-10-23 12:59:13 +02:00
allout-tests.el
allout-widgets-tests.el
ansi-color-tests.el
ansi-osc-tests.el
apropos-tests.el
arc-mode-tests.el
auth-source-pass-tests.el
auth-source-tests.el Fix auth-source-macos-keychain (bug#64977) 2023-08-13 18:31:47 +02:00
autoinsert-tests.el
autorevert-tests.el Use new ERT skip-when macro in tests 2023-09-04 18:25:18 +02:00
battery-tests.el
bookmark-tests.el
buff-menu-tests.el
button-tests.el
calculator-tests.el Add test for calculator-exp 2023-08-16 21:27:50 +02:00
char-fold-tests.el
color-tests.el
comint-tests.el
completion-preview-tests.el ; Improve and add tests for Completion Preview mode 2023-11-25 12:06:03 +02:00
completion-tests.el
cus-edit-tests.el ; * test/lisp/cus-edit-tests.el: remove unused var (bug#63290) 2023-08-21 17:05:53 +02:00
custom-tests.el
dabbrev-tests.el
delim-col-tests.el
descr-text-tests.el
desktop-tests.el
dired-aux-tests.el
dired-tests.el ; * test/lisp/dired-tests.el (dired-test-bug27243-03): fix unwind 2023-08-14 17:03:44 +02:00
dired-x-tests.el
dnd-tests.el Render default DND file name handlers more precise 2023-10-28 06:42:48 +00:00
dom-tests.el
edmacro-tests.el
electric-tests.el
elide-head-tests.el
env-tests.el
epg-config-tests.el
epg-tests.el Skip hanging EasyPG tests on GnuPG 2.4 2023-08-29 00:48:54 +02:00
faces-tests.el
ffap-tests.el
filenotify-tests.el New filenotify tests 2023-10-12 11:02:53 +02:00
files-tests.el Recognize shebang lines that pass '-S/--split-string' to 'env' 2023-11-19 11:05:26 +02:00
files-x-tests.el New macro connection-local-p 2023-12-12 17:39:51 +01:00
find-cmd-tests.el
font-lock-tests.el
format-spec-tests.el
help-fns-tests.el Make describe-keymap tests more robust 2023-08-08 03:54:02 +02:00
help-mode-tests.el
help-tests.el Rename describe-map-tree to help--describe-map-tree 2023-09-17 22:56:00 +02:00
hfy-cmap-tests.el
hi-lock-tests.el
hl-line-tests.el
htmlfontify-tests.el
ibuffer-tests.el Use new ERT skip-when macro in tests 2023-09-04 18:25:18 +02:00
ido-tests.el
image-file-tests.el
image-tests.el
imenu-tests.el
info-tests.el
info-xref-tests.el
isearch-tests.el Improve invisibility handling in isearch-lazy-highlight (bug#40808) 2023-11-20 19:57:57 +02:00
jit-lock-tests.el
json-tests.el
jsonrpc-tests.el Jsonrpc: rework fix for bug#60088 2023-12-14 00:55:52 +00:00
kmacro-tests.el
loadhist-tests.el
lpr-tests.el
ls-lisp-tests.el
man-tests.el
md4-tests.el
minibuffer-tests.el Fix test failures in test/lisp/minibuffer-tests.el 2023-11-11 16:13:52 +00:00
misc-tests.el Add duplicate-region-final-position (bug#64185) 2023-07-01 12:41:09 +02:00
mouse-tests.el
mwheel-tests.el
newcomment-tests.el
obarray-tests.el
paren-tests.el
password-cache-tests.el
pcmpl-linux-tests.el
pcomplete-tests.el
proced-tests.el ; Fix typos 2023-12-10 13:22:04 +01:00
ps-print-tests.el
repeat-tests.el
replace-tests.el
rot13-tests.el
saveplace-tests.el
scroll-lock-tests.el
server-tests.el Skip hanging tests on Cygwin (bug#65325) 2023-08-19 14:21:34 -04:00
ses-tests.el
shadowfile-tests.el Use new ERT skip-when macro in tests 2023-09-04 18:25:18 +02:00
shell-tests.el ; * test/lisp/shell-tests.el: Add tests for shell-dirtrack-mode (bug#64311) 2023-07-08 19:30:06 +03:00
simple-tests.el Revert "Mark two tests as expensive" 2023-09-16 19:09:04 +02:00
sort-tests.el
soundex-tests.el
startup-tests.el
subr-tests.el (merge-ordered-lists): Dot a few more is 2023-11-16 09:57:33 -05:00
tab-bar-tests.el
tabify-tests.el
tar-mode-tests.el
tempo-tests.el
term-tests.el Use new ERT skip-when macro in tests 2023-09-04 18:25:18 +02:00
thingatpt-tests.el ; Fix typos 2023-12-10 13:22:04 +01:00
thread-tests.el Use new ERT skip-when macro in tests 2023-09-04 18:25:18 +02:00
time-stamp-tests.el Further improve test coverage of time-stamp-pattern parsing 2023-11-04 21:46:27 -07:00
time-tests.el
timezone-tests.el
uniquify-tests.el ; * test/lisp/uniquify-tests.el (uniquify-home): Delete (bug#62621). 2023-08-03 17:04:41 +03:00
version-tests.el
wdired-tests.el
whitespace-tests.el
wid-edit-tests.el Avoid errors when a restricted-sexp widget is empty 2023-09-16 12:56:34 +03:00
x-dnd-tests.el
xdg-tests.el
xml-tests.el
xt-mouse-tests.el
yank-media-tests.el