miniblog.
← Back to all posts
Wilfred Hughes
Feb 7, 2017 at 23:40
You can actually teach the Emacs byte-compiler to use specific opcodes for your functions! I've made dash.el faster:
https://github.com/magnars/dash.el/pull/210
Ensure that -first-item is as fast as car by Wilfred · Pull Request #210 · magnars/dash.el
Add symbol properties to -first-item so the byte-compiler compiles calls to the car opcode. This ensures that -first-item has the same performance as car. Add symbol properties to -first-item so th...