webdiff icon indicating copy to clipboard operation
webdiff copied to clipboard

Generate diff UI lazily for large files

Open danvk opened this issue 1 year ago • 0 comments

I believe that generating diffs is quite fast, but generating the UI for them may not be. For example, run:

git webdiff 52aa15f^..52aa15f

from https://github.com/danvk/codediff.js and click through to package-lock.json. There's a noticeable pause while it loads the UI. The diff is long and 99+% of it is offscreen. The lower parts could be generated lazily.

This probably isn't even worth trying without React-ifying codediff.js first.

danvk avatar Jun 05 '24 20:06 danvk