Phoenix json API extremely slow when serving CSV files

Thanks for suggestion. I don’t understand what this processor function is