I'm interesting in parsing very large stringified JSON strings (up to 2GB). I have the string in memory, but the problem I have is that JSON.parse takes too long to do the parsing. So I'm looking at solutions like clarinet to progressively parse. What I'm wondering is whether clarinet blocks while parsing? Does it ever use setImmediate or yield or something like that so that the node event-loop can run something else and then come back to clarinet?
I'm interesting in parsing very large stringified JSON strings (up to 2GB). I have the string in memory, but the problem I have is that
JSON.parsetakes too long to do the parsing. So I'm looking at solutions like clarinet to progressively parse. What I'm wondering is whether clarinet blocks while parsing? Does it ever usesetImmediateoryieldor something like that so that the node event-loop can run something else and then come back to clarinet?