Let's see if we can shave off that call as well. ![]() We can skip checking it and avoid that call to git. Your comment made me identify one obvious thing, though - when unstaging we absolutely do not need to run 'git diff-index -cached HEAD' because we know that the file is no longer in the index. And we don't know which is correct without asking git. Unstaging a file can put it into one of two states: modified or untracked. I believe this is because it refreshes all information after the stage. This is unusable, especially when you wish to click on multiple files for staging. Clicking on a file icon to stage/un-stage it can take 4+ seconds. This is probably especially noticeable under windows. This is a simple operation because we know that once it's staged there's no way it can be modified, unmerged, or untracked. Staging/unstaging operations are way too slow on large repositories. when staging, it's very clear that we're doing one thing only - we are taking a file that was classified as unmerged, modified, or untracked and marking it as staged.cola classifies files as being staged, modified, unmerged, or untracked.Here's an explanation as to why staging is fast but unstaging isn't: ![]() I'll elaborate a bit here in case someone has any ideas how to improve it. The hard part about "unstaging" is knowing how to classify the file. ![]() I've reopened this issue so that we can continue working on it. The slow part is the "what is the state" bit, which doesn't really need to be synchronous. Take a fresh clone of the repository to a new local directory. Some large or complex repositories with many references may cause GitKraken Client to slow down. The "stage/unstage" operation is for the most part instant. Perfomance issues in GitKraken Client are often related to a specific repository. This is really making me think that we should push all of this global "update my state" stuff into a background thread. I too am using the Windows version of GitKraken with my WSL2 file system shared via a drive mapping to U.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |