leoliu / ggtags

Emacs frontend to GNU Global source code tagging system.
http://elpa.gnu.org
577 stars 56 forks source link

ggtags + eldoc within tramp seems to slow down the cursor significantly #189

Closed baron closed 5 years ago

baron commented 5 years ago

Title pretty much explains the situation. It could be due to the project being large but the cursor constantly stutters while moving around the file. It gets much smoother when I disable eldoc in the buffer. 2019-01-10 17 59 58

leoliu commented 5 years ago

What is the value of eldoc-idle-delay in your setup?

Could you also try updating ggtags-show-definition to have a smaller CUTOFF to ggtags-global-output (is hardcoded as 100)?

baron commented 5 years ago

You are an absolute wizard! It turns out my eldoc-idle-delay was set to 0.

Before 2019-01-11 14 27 20

eldoc-idle-delay set to 1 and ggtags-global-output to 10 2019-01-11 14 30 42

eldoc-idle-delay set to 1 and ggtags-global-output to 100 2019-01-11 14 34 27

Thank you once again for solving another issue. Now I can use your awesome package in peace whether on tramp or local. I seriously can't work on this project without ggtags. It's a godsend.

leoliu commented 5 years ago

Glad to hear it.