Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Squashing #11

Open
KB1RD opened this issue Nov 1, 2019 · 2 comments
Open

Squashing #11

KB1RD opened this issue Nov 1, 2019 · 2 comments
Assignees
Labels
discussion enhancement New feature or request help wanted Extra attention is needed

Comments

@KB1RD
Copy link
Owner

KB1RD commented Nov 1, 2019

The current method of figuring out what the contents of the document are is to sync back to the start of the document. This means that the time to sync gradually increases and increases until the program becomes unusable. The only solution that I can think of this is to create "squash" messages that copy old messages into a single "squashed" message containing the text in a certain region.
However, this creates a large problem. Let's say that early in the edit history somebody adds a paragraph or so that nobody changes later. Most likely, a smart algorithm would "squash" this paragraph relatively early on. This would require each client to still sync back that far to fetch any additions that could've been made to that squash since it was created. The solution, in my view, is to group messages associated with a certain squash together in a message thread. This is a WIP proposal for Matrix under issue https://github.com/matrix-org/matrix-doc/issues/1198. The requirements for threads to be used for squashing:

  • Be able to send full Matrix messages to each
  • Be able to sync/filter threads separately from the main room
  • Be able to create threads inside threads infinitely
@KB1RD KB1RD added enhancement New feature or request discussion labels Nov 1, 2019
@KB1RD KB1RD self-assigned this Nov 1, 2019
@KB1RD KB1RD mentioned this issue Nov 1, 2019
@KB1RD
Copy link
Owner Author

KB1RD commented Nov 1, 2019

The current proposal linked in the matrix-doc issue appears to be perfect for this

@KB1RD KB1RD added the help wanted Extra attention is needed label Nov 28, 2019
@KB1RD
Copy link
Owner Author

KB1RD commented Jul 1, 2020

As I hinted in Matrix Live, I'm leaning towards having an optional server API that can figure out the "head" events, i.e, the ones that have not been overwritten.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
discussion enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

1 participant