I've got a followup. If I copy the function from my lisp buffer and paste it into the slime-repl buffer, the function evaluates instantly there. So it is only when doing C-c C-c from inside the lisp buffer that I suffer this long delay.