Closed soyuka closed 9 years ago
Take #42 instead.
@raymondfeng it doesn't shock me, I know that return is always faster. Thought, I doubt it could solve a memory issue.
@raymondfeng I don't understand the need of process.nextTick
in the reader.
May you take a look at this implementation of the reader: https://github.com/soyuka/strong-oracle/commit/5164a399e1b82135c39af5044cc8b53f4aed8fb7 ?
The way I understand it is, if you don't return when the closure is complete, the GC won't release the memory allocated to the closure.
process.nextTick()
is to ensure the async expectation of a method call so that the caller is guaranteed that callback
will happen after the method call returns.
It's not needed here.
Nice catch @kathan!