Noboru Ota <m...@nobiot.com> writes: >> You need Www. >> The attached version of the patch should work for 5000-terms.org. > > Thank you, Ihor. With your advice, I have managed to apply the patch. It > works for 5000 terms! Thank you.
Thanks for testing! Applied, onto main. https://git.savannah.gnu.org/cgit/emacs/org-mode.git/commit/?id=341a01a07 Fixed. > Some observations: > > - Running `org-update-radio-target-regexp` takes about 15 seconds for the > file[1]. This is expected. By splitting radio target regexp into multiple regexps, we increase the number of regexp search invocations. Regexp search is relatively costly in Emacs. >> (I had to scale down the maximum allowed regexp size; apparently, >> the number from C sources was not small enough). > > Do you have any indication on how many would be maximum? See the docstring of `org-target-link-regexp-limit'. The hard limit is MAX_BUF_SIZE in src/regex-emacs.c, but that's after the regexp is compiled (AFAIU). So, the real limit is smaller and may depend on regexp complexity. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>