* For each line read there was a call to malloc() and one to free(). I set things up that the buffer used for reading is reused by simply making the buffer static.
What about e.g.
zip(File("a.txt").byLine, File("b.txt").byLine)
Vladimir Panteleev via Digitalmars-d Sun, 22 Mar 2015 03:16:21 -0700
* For each line read there was a call to malloc() and one to free(). I set things up that the buffer used for reading is reused by simply making the buffer static.
What about e.g.
zip(File("a.txt").byLine, File("b.txt").byLine)