diff options
author | Mattias EngdegÄrd <mattiase@acm.org> | 2023-02-04 18:58:48 +0100 |
---|---|---|
committer | Mattias EngdegÄrd <mattiase@acm.org> | 2023-02-05 16:24:51 +0100 |
commit | 929099cbb435f8bc9461b8f0ba99a5f8c2093222 (patch) | |
tree | 8cbbebe184ce81b33599d767656dca3ea3c635d1 /lisp/emacs-lisp/regexp-opt.el | |
parent | 45525cafcbcc5205b7a3d53a6ae62c3ee31dfaf2 (diff) | |
download | emacs-929099cbb435f8bc9461b8f0ba99a5f8c2093222.tar.gz emacs-929099cbb435f8bc9461b8f0ba99a5f8c2093222.tar.bz2 emacs-929099cbb435f8bc9461b8f0ba99a5f8c2093222.zip |
Get rid of delq in LAP optimiser
* lisp/emacs-lisp/byte-opt.el (byte-optimize-lapcode):
Instead of using the O(n) `delq' to remove single instructions, use
the O(1) `setcdr'. To do this, anchor the instruction list in a cons
cell and use the predecessor cell in iteration.
Diffstat (limited to 'lisp/emacs-lisp/regexp-opt.el')
0 files changed, 0 insertions, 0 deletions