Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
json: Only start parsing once we're sure we have a message
PR #3957 improved performance considerably, however we still look over the entire message for the message separator. If instead we just look in the incrementally read data, we remove the quadratic behavior for large messages. This is safe since we then loop over the messages which would drain any message separator from the buffer before we attempt the next read. Changelog-Fixed: bcli: Significant speedups for block synchronization
- Loading branch information