So, I decided to rewrite https://github.com/banga/powerline-shell in go, and the performance is amazing.
The latency went down from several seconds to 200µs (except when git is used, then it’s ~4ms), and it’s fast enough.
The repo is at https://github.com/justjanne/powerline-go. Here’s a small video showing just how different the latency is: https://s3.kuschku.de/public/2017-08-21_16-43-41.mp4. Disclaimer: Although the original was MIT, I licensed my rewrite under GPLv3.
Improving the latency of software is just such an amazing quality-of-life improvement, it was well worth those 10 hours of work.
So, I decided to rewrite https://github.com/banga/powerline-shell in go, and the performance is amazing.
The latency went down from several seconds to 200µs (except when git is used, then it’s ~4ms), and it’s fast enough.
The repo is at https://github.com/justjanne/powerline-go. Here’s a small video showing just how different the latency is: https://s3.kuschku.de/public/2017-08-21_16-43-41.mp4. Disclaimer: Although the original was MIT, I licensed my rewrite under GPLv3.
Improving the latency of software is just such an amazing quality-of-life improvement, it was well worth those 10 hours of work.