xenoscopic / xeno

Synchronous remote file editing using SSH and Git
Other
94 stars 11 forks source link

Enhancement: Use awk for better regex performance #17

Open xenoscopic opened 10 years ago

xenoscopic commented 10 years ago

Instead of testing xeno_ssh_monitor input using a pipe to sed, use awk in the xeno_ssh command to continuously filter only initialization lines to the FIFO, minimizing what goes to the FIFO and improving performance for high-throughput SSH sessions.

For an example of how to do this in AWK, see this SO post (just search for "awk").