b42a222c88
Recently (https://github.com/tldraw/tldraw/pull/3012), we started aggregating data messages before sending them out. However, local testing shows that we generate *many* redundant messages (see the test file for an example of a real buffer captured during local testing with just two users). This PR adds a function to squish those updates together, reducing the amount of data we need to transfer and load on the client that won't need to process those redundant messages. The function is checked with [fast-check](https://fast-check.dev/), a JS property test framework, to make sure that squished deltas result in exactly the same state as the original ones. ### Change Type - [x] `minor` — New feature ### Test Plan 1. Needs a group smoke test - [x] End to end tests |
||
---|---|---|
.. | ||
src | ||
api-extractor.json | ||
api-report.md | ||
CHANGELOG.md | ||
LICENSE.md | ||
package.json | ||
README.md | ||
setupJest.js | ||
tsconfig.json |