git-diff-view
git-diff-view copied to clipboard
Support Virtual Scroll to improve performance
When rendering tens of thousands of lines of diff content, it will be very stuck and often out of memory
There are a example for use @git-diff-view/react with react-virtuoso to implement Github like Virtual Scroll, you can check the code on https://github.com/MrWangJustToDo/MrWangJustToDo.io/blob/main/app/src/components/DiffView/DiffContent.tsx#L118
There are a example for use
@git-diff-view/reactwithreact-virtuosoto implementGithub likeVirtual Scroll, you can check the code on https://github.com/MrWangJustToDo/MrWangJustToDo.io/blob/main/app/src/components/DiffView/DiffContent.tsx#L118
This demo does not seem to solve the performance problem of
git-diff-view, but just uses list rendering of multiple git-diff-view boxes.