miniblog.
← Back to all posts
Aug 7, 2016 at 20:37
Trying to optimise some CPU-bound elisp. Favouring C built-ins makes a big difference! Next, I'm going to try byte-compiling and defsubst.
Wilfred Hughes
Related Posts
Aug 9, 2016 at 01:42
Historical defsubst macrology by jwz before the elisp byte compiler:
https://web.mit.edu/~deberg/emacs/elisp/defsubst.el
(cf #define in C!)
Wilfred Hughes
Shared words: elisp, defsubst, byte Score: 87.1
Jan 18, 2017 at 22:55
Turns out that byte-compiling elisp will replace calls to some primitive functions!
https://emacs.stackexchange.com/a/30071/304
(faster, but stops redefining)
Which functions cannot be redefined after byte compilation? - Emacs Stack Exchange
Wilfred Hughes
Shared words: elisp, compiling, byte Score: 76.1
Dec 12, 2016 at 08:19
Emacs tip: add lexical-binding: t to your elisp files. This makes closures easier to reason about and lets the byte compiler find more bugs.
Wilfred Hughes
Shared words: elisp, makes, byte Score: 52