Report question

Question: Why is my custom MySQL function so much slower than inlining same in query?