Found 9 bookmarks
Newest
Why Your Go Code Is Slower Than It Should Be: A Deep Dive Into Heap Allocations
Why Your Go Code Is Slower Than It Should Be: A Deep Dive Into Heap Allocations
Every Go developer eventually hits the same wall: your code works, but it's not fast enough. You've optimized your algorithms, removed unnecessary loops, and still—something's off. More often than not, the culprit is hiding in plain sight: excessive heap allocations. In this guide, I'll show you exactly how Go decides where to put your variables, why it matters for performance, and how to fix the most common allocation mistakes I've seen in production codebases. The Hidden Cost of Memory Allo
·cristiancurteanu.com·
Why Your Go Code Is Slower Than It Should Be: A Deep Dive Into Heap Allocations
Counter Service: How we rewrote it in Rust
Counter Service: How we rewrote it in Rust
The Integrity Data Platform team at Grab rewrote a QPS-heavy Golang microservice in Rust, achieving 70% infrastructure savings while maintaining similar performance. This initiative explored the ROI of adopting Rust for production services, balancing efficiency gains against challenges like Rust’s steep learning curve and the risks of rewriting legacy systems. The blog delves into the selection process, approach, pitfalls, and the ultimate business value of the rewrite.
·engineering.grab.com·
Counter Service: How we rewrote it in Rust
An Optimization That's Impossible in Rust! | ltungv
An Optimization That's Impossible in Rust! | ltungv
In this article, I'll describe how I implemented German string and the challenges of doing so in Rust. Specifically, I'll examine how to enable shared ownership for such data structure. Providing unique ownership is relatively trivial, and there is already a nicely written tutorial from the Rustonomicon teaching you how to [implement a `Vec`], which is not much different from a `String`. But first, let's talk about the concept of German string.
·tunglevo.com·
An Optimization That's Impossible in Rust! | ltungv