GopherCon 2024: Advanced Code Instrumentation Techniques for High-Performance Trading Systems @GopherAcademy
GopherCon 2024: Advanced Code Instrumentation Techniques for High-Performance Trading Systems  @GopherAcademy
Uploaded December 2024 | Updated December 2026, 3 days ago
Instrumentation of code for the collection of runtime metrics is undeniably essential for monitoring the health of a system and plays a critical role in enhancing its performance. Yet, this vital practice often comes at a cost, redirecting valuable CPU resources from core functionalities to the collection of runtime data.

In this presentation, we'll uncover the unexpected impact that casually implemented code instrumentation for gathering runtime statistics can have on performance. We’ll explore how code instrumented on the hot path can significantly elevate execution times, especially when the instrumented code path involves frequent function calls that read from and/or write to shared data structures, which in turn increases the memory footprint that needs to be later garbage collected. The narrative then delves into the code instrumentation patterns and strategies employed to mitigate these effects, including the strategic use of buffering and channels for asynchronous processing, memory pre-allocation for better memory efficiency, batching statistics for processing to shorten the instrumented code path, to name a few. All these measures are designed to align with and exploit Go’s distinctive features effectively. This presentation aims to illustrate how strategic monitoring efforts can indeed complement, rather than compromise, the efficiency of critical operations.
GopherCon 2024: Advanced Code Instrumentation Techniques for High-Performance Trading SystemsGopherCon 2025 Challenge Series Official Theme Reveal Trailer | CodePros CTF Cybersecurity EventGopherCon 2022: A Journey Through Integration Testing with Go- What Could Go Wrong? - Samantha CoyleGopherCon 2022: Safe, Fast, and Easy: Building a Plugin System with WebAssembly - Kyle ConroyGopherCon 2023: StAtE OF tHe arT In RAnDomneSS - Branden BrownGopherCon 2022: Go Templates - Michael RichmanGopherCon 2023: Clean Up Your GOOOP: How to Break OOP Muscle Memory - Dylan BourqueGopherCon 2024: Building a Programmable Firewall with Go - Mason JohnsonGopherCon 2025: AI and Go: Opportunities and Challenges Panel DiscussionGopherCon 2023: Structured Logging for the Standard Library - Jonathan AmsterdamGopherCon 2022: RPC Demystified or Hand-writing a gRPC Handler in 7 Minutes - Akshay ShahGopherCon 2023: Freeze: A TinyGo-Powered Meeting Muter with a Twist - Hari Bhaskaran
Gopher Academy |

GopherCon 2024: Advanced Code Instrumentation Techniques for High-Performance Trading Systems

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER