ENH: improve performance of df.to_csv GH3054