Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

emacs/bcode: Optimized opcodes #14

Open
quasilyte opened this issue Mar 3, 2018 · 0 comments
Open

emacs/bcode: Optimized opcodes #14

quasilyte opened this issue Mar 3, 2018 · 0 comments

Comments

@quasilyte
Copy link
Owner

quasilyte commented Mar 3, 2018

For operations like aref it can be a worthwhile to have dedicated opcodes.

;; instead of:
[eval array]
constant 0
aref
;; generate this:
[eval array]
aref-0

This kind of substitution should happen during Emacs Lisp bytecode load.
When loader sees recognizable sequence, it replaces instruction sequence with optimized version.

The performance impact and the amount of code affected should be investigated.

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

No branches or pull requests

1 participant