3 ms·
TCP roundtrip overhead over localhost costs approximately nothing. But running the LSP itself is slow. It's not instant, and you can't run it in a blocking way
by cyberax 9d ago
TCP roundtrip overhead over localhost costs approximately nothing.
But running the LSP itself is slow. It's not instant, and you can't run it in a blocking way for each keypress.
- mitxela 8d agoA function call costs nanoseconds. You can sprinkle them literally everywhere. A JSON-formatted TCP round trip to localhost costs, I'd guess conservatively, at least ten microseconds, 1000x slower.
- cyberax 8d agoOK. Here's my simple implementation of an LSP: > func doLspStuff() { sleep(60000); } Now sprinkle them after each keypress. Do you see the issue now?