这是indexloc提供的服务,不要输入任何密码
Skip to content

Conversation

@kisaragi-hiu
Copy link

Implements / fixes #8.

regexp-opt can be slow because it also tries to optimize the regexp. For example:

(regexp-opt (list "aaa" "abb"))
;; -> "\\(?:a\\(?:aa\\|bb\\)\\)"

So it shouldn't be run every time a fontification happens.

This does mean that when lisp-extra-font-lock-loop-keywords-with-var and lisp-extra-font-lock-loop-keywords are changed, the changes would only take effect after the file is reloaded. This shouldn't be a problem though, as these variables are not meant to be changed, and are unlikely to be changed anyways.

regexp-opt can be slow because it also tries to optimize the
regexp. For example:

    (regexp-opt (list "aaa" "abb"))
    ;; -> "\\(?:a\\(?:aa\\|bb\\)\\)"

So it shouldn't be run every time a fontification happens.

This does mean that when
lisp-extra-font-lock-loop-keywords-with-var and
lisp-extra-font-lock-loop-keywords are changed, the changes would
only take effect after the file is reloaded. This shouldn't be a
problem though, as these variables are not meant to be changed, and
are unlikely to be changed anyways.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Memory consumption

1 participant