diff options
| author | Mattias EngdegÄrd | 2023-04-20 15:07:06 +0200 |
|---|---|---|
| committer | Mattias EngdegÄrd | 2023-04-22 09:47:23 +0200 |
| commit | e6ca5834a6eab91023e9f968b65683d0a74db1e7 (patch) | |
| tree | 146b8d8e64cd321fd41871354ee16758f1bbfce8 /exec/exec.c | |
| parent | 4f3dae2b0d5fc43e5e2effa6d36544b6de2a43d8 (diff) | |
| download | emacs-e6ca5834a6eab91023e9f968b65683d0a74db1e7.tar.gz emacs-e6ca5834a6eab91023e9f968b65683d0a74db1e7.zip | |
Improved nconc and append compiler optimisations
Add the transforms:
(nconc) -> nil
(nconc X) -> X
and for arguments to `nconc`:
nil -> <elided>
(list X...) (list Y...) -> (list X... Y...)
(list X) Y -> (cons X Y)
* lisp/emacs-lisp/byte-opt.el (byte-optimize-nconc): New.
(byte-optimize-append): Fix minor flaws and generalise.
Diffstat (limited to 'exec/exec.c')
0 files changed, 0 insertions, 0 deletions