3 ms·
Great presentation. One question: since this is a performance-oriented library, did you consider the possibility of letting the user specify a "chunk" function
by Camillo 12y ago
Great presentation. One question: since this is a performance-oriented library, did you consider the possibility of letting the user specify a "chunk" function that receives an array of lines, instead of a "step" function that only receives one? That way, if you are parsing a file with one million lines, you can invoke the callback ten thousand times (with a hundred lines each time) instead of a million times.
- mholt 12y agoSounds like a great idea. Since that will use more memory, I also want to allow users of the library to customize the chunk sizes. I'll try to build in these features for 3.1.