![]() Closes https://github.com/zed-industries/zed/issues/18062 This pull request prevents the `scores` matrix for the streaming diff from growing quadratically. Previously, we would store rows and columns respectively for all characters in the old and new text. However, every time we receive a chunk, we will always advance the position in the matrix to the very latest character in the new text. This means we can avoid storing scores for the new characters that were already reported. Randomized tests still pass and I also made sure that the diffs we produce are identical. Release Notes: - Improved memory footprint for inline transformations ([#18062](https://github.com/zed-industries/zed/issues/18062)) |
||
---|---|---|
.. | ||
src | ||
Cargo.toml | ||
LICENSE-GPL |