JeffPaine / csvsplit

Split a .csv file into multiple files
MIT License
5 stars 4 forks source link

Use array instead of slice for better performance #19

Open JeffPaine opened 9 years ago

JeffPaine commented 9 years ago

Right now, we start with a zero length slice and keep appending to it. https://github.com/JeffPaine/csvsplit/blob/master/main.go#L93

I wonder if it would perform better as a pre-sized array?

Depends on #18, so we can measure our performance before and after.