gracer icon indicating copy to clipboard operation
gracer copied to clipboard

Speed

Open SimonSapin opened this issue 8 years ago • 2 comments

Thank you for making this, I like it!

A minor downside is that I see some noticeable lag at each keystroke when typing, especially if my CPU cores are busy (even though I’m running Cargo under nice).

Do you know if gedit’s UI is blocked while racer is running? If so, making things asynchronous would maybe reduce the perception of lag.

Or do you have other ideas for what could make things faster? Maybe having a long-running racer process rather than spawning a new one for every keystroke?

SimonSapin avatar Mar 23 '16 18:03 SimonSapin

Other than spawning new racer proccess everytime, it saves a new temp file at each keystroke. That can also cause the lag but it's only way to communicate with racer. So as you said, running racer async or using a racer daemon maybe reduce the lag. I'll look into that.

And thanks for your interest!

isamert avatar Mar 23 '16 20:03 isamert

racer can probably be modified to accept input on stdin rather than a (temporary) file, but I don’t know if that is a bottleneck.

Let me know if I can help.

SimonSapin avatar Mar 23 '16 20:03 SimonSapin