git-gutter-plus icon indicating copy to clipboard operation
git-gutter-plus copied to clipboard

Very slow on large files

Open jschaf opened this issue 8 years ago • 1 comments

I have a large org-file (300k) that git-gutter-+ runs slowly on, as in it takes 5 seconds for git-gutter+-refresh to run.

Using regulargit-gutter-mode runs instantaneously.

Here's the profiler report.

   - save-buffer                                                 5035  84%
    - basic-save-buffer                                          5035  84%
     - run-hooks                                                 5031  84%
      - git-gutter+-refresh                                      5023  84%
       - git-gutter+-process-diff                                5022  84%
        - git-gutter-fr+-view-diff-infos                         5022  84%
         - mapc                                                  5019  83%
          - git-gutter-fr+-view-diff-info                        5019  83%
           - git-gutter-fr+-view-region                          5019  83%
              fringe-helper-insert-region                           6   0%

jschaf avatar Mar 13 '16 05:03 jschaf

Could we as a temporary workaround have a max-file-size variable? git-gutter+-mode is quite unusable on large files, unfortunately :(

unhammer avatar Jul 28 '16 13:07 unhammer