Analyzing SSH Protocol Inefficiency: Why Single Keystrokes Generate Excessive Network Packets
By
eieio
Baker's choice. Dense with flavour, light on filler.
Summary
The article examines SSH protocol inefficiencies, specifically how a single keystroke in an SSH session generates an excessive number of packets (around 100 packets per keystroke). The author analyzes packet capture data showing the back-and-forth communication between client and server for just one keystroke, revealing protocol overhead and latency issues. The article appears to be a technical deep dive into SSH protocol mechanics, likely discussing how the author optimized their game by forking Go's crypto library to address these performance issues.
Key quotes
· 3 pulledHere are a few lines of summarized tcpdump output for an ssh session where I send a single keystroke
I said a 'few' because there are a lot of these lines
I made my next game twice as fast by forking go's crypto library
You might also wanna read

Research-Driven Coding Agents Improve llama.cpp Performance with Literature Search Phase
The article discusses how coding agents that incorporate a research phase—reading academic papers and studying competing projects—before wri
Company Uses AI to Rewrite JSONata in Go, Achieving 1,000x Speedup and $500K Annual Savings
A company used AI to rewrite JSONata, a JSON transformation language, as a pure-Go library called gnata in just seven hours with $400 in AI
Optimizing the asin() Function: A Technical Follow-up on Performance Improvements
The author revisits their previous work on optimizing the asin() (arcsine) function in C/C++ after receiving feedback from online communitie
Learning from Redundant Optimization: The asin() Function Case Study
The article discusses the author's realization that a faster implementation of the asin() (arcsine) function was already available in standa
Optimizing C Software Performance with Dynamic CPU Feature Detection
The article discusses techniques for optimizing C software performance through dynamic feature detection, focusing on x86-64 processors. It
Performance Optimization: How a 185-Microsecond Type Hint Boosted Throughput 13× in Clojure Roughtime Implementation
The article describes a performance optimization in a Clojure implementation of the Roughtime protocol, where a seemingly trivial change to
