r/cpp • u/akinocal • Jun 15 '26
Building a High-Throughput C++ FIX Server: From Single-Core Efficiency to Multi-Core Scaling
https://substack.com/home/post/p-202082856
96
Upvotes
r/cpp • u/akinocal • Jun 15 '26
7
u/Eric848448 Jun 15 '26
Do any exchanges still use FIX? I know in the options world it’s been replaced by binary protocols.
Maybe for smaller dark pools and FX exchanges?
6
u/User_Deprecated Jun 15 '26
SIMD on the checksum is a nice optimization but in my experience the bigger win is using it for delimiter scanning. SOH search across the buffer, finding field boundaries. Moved that from scalar to AVX2 and it went from around 150ns to about 12ns for a typical ExecutionReport. Checksum is a small fraction of total parse time comparatively.
The structural index approach where you build all field positions in one SIMD pass and then do lazy extraction on access is worth looking at too if you haven't already.
41
u/garnet420 Jun 15 '26
The amount of wasted human effort on high frequency trading is disgusting.