nonsequitur / git-gutter-plus

146 stars 17 forks source link

Very slow on large files #32

Open jschaf opened 8 years ago

jschaf commented 8 years ago

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%
unhammer commented 8 years ago

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