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

History mode efficiency #176

Open
edemaine opened this issue Apr 22, 2021 · 0 comments
Open

History mode efficiency #176

edemaine opened this issue Apr 22, 2021 · 0 comments

Comments

@edemaine
Copy link
Owner

edemaine commented Apr 22, 2021

  • Should remember the diff sequence when leaving and re-entering history view for the same page. Saves client and server and network. Clear when loading for a different page. Load any diffs since the past diff when re-entering.
  • Then can remember what diff you were on, so when re-entering, jump to the remembered location in time. This should make it more convenient to jump back and forth between past and present.
  • Might also want to limit the number of returned diffs at once, and require client to do a bunch of fetches, to limit the cost of each method call.
  • Should also compute reverse diffs when applying a diff (like we do for undo stack -- maybe we can even use that data structure?). Then we can scrub backwards as quickly as we can forwards.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant