gracer
gracer copied to clipboard
Speed
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?
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!
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.