Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

slow in emacs #21

Open
freddez opened this issue Jul 26, 2017 · 3 comments
Open

slow in emacs #21

freddez opened this issue Jul 26, 2017 · 3 comments
Labels

Comments

@freddez
Copy link

freddez commented Jul 26, 2017

Hello,

I don't know why, but ripgrep is really slow on emacs :

  • if I do a simple search (find an expr in ~20 source files), it tooks 3 seconds
  • if I paste rg expression in terminal, I have an immediate output
  • if I do a rgrep in emacs, no problem.

GNU Emacs 25.2.50.2 (x86_64-pc-linux-gnu, GTK+ Version 3.22.11) of 2017-07-03
ripgrep 0.5.2

Do you have an idea ?

@nlamirault
Copy link
Owner

Strange. which version of Emacs and ripgrep do you use ?
I've got same behavior in Emacs and shell.

@freddez
Copy link
Author

freddez commented Jul 26, 2017 via email

@freddez
Copy link
Author

freddez commented Jul 31, 2017

I've done some profiling:

- redisplay_internal (C function)                                2929  96%
 - jit-lock-function                                             2929  96%
  - jit-lock-fontify-now                                         2929  96%
   - jit-lock--run-functions                                     2929  96%
    - run-hook-wrapped                                           2929  96%
     - #<compiled 0xeab7ef>                                      2929  96%
      - font-lock-fontify-region                                 2929  96%
       - font-lock-default-fontify-region                        2929  96%
          font-lock-fontify-keywords-region                      2929  96%
+ command-execute                                                  86   2%
+ ...                                                              16   0%

With rgrep function, the redisplay internal is lowered to 2% of the cpu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants