An interesting commit in GNU Emacs: optimising the format command by allowing (format "%s" x) to just return x, saving a string allocation. This was already the place in some parts of elisp, but it's now documented and taken advantage of :)
https://github.com/emacs-mirror/emacs/commit/3db388b0bf83d3138562f09ce25fab8ba89bcc81
miniblog.
Related Posts
A great deep dive on building GitHub's code view, optimising React, scaling to thousands whilst supporting both Ctrl-F and syntax highlighting:
Optimising GHC, implementing assembly pretty-printers, and the tradeoffs of implementing against an interface: https://www.tweag.io/blog/2022-12-22-making-ghc-faster-at-emitting-code/
Interpreters versus compilers as a spectrum, and a fun worked example of optimising Brainfuck:
