Trying to optimise some CPU-bound elisp. Favouring C built-ins makes a big difference! Next, I'm going to try byte-compiling and defsubst.