changes-stream
changes-stream copied to clipboard
Return early if no newline: improves performance for large documents
For large documents (tens of MB), performance is quadratically slow because each small chunk of data triggers a split.
This small fix dramatically improves performance for large documents.