Found 14 bookmarks
Custom sorting
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
Slice Internals in Go: How the Runtime Expands Slices Efficiently
Slice Internals in Go: How the Runtime Expands Slices Efficiently
This article dives into the internals of Go slices, exploring how the runtime efficiently grows the slice’s backing array. It covers the key strategies used, including growth factors, CPU word size alignment, and the size class allocation table, all aimed at optimizing performance while maintaining flexibility.
·themsaid.com·
Slice Internals in Go: How the Runtime Expands Slices Efficiently
A Deep Look Into Golang Profile-Guided Optimization (PGO)
A Deep Look Into Golang Profile-Guided Optimization (PGO)
Intro Profile-Guided Optimization (PGO) is an optimization method which improves final compiled binary by using profile data hints and compiling the code based on those profiles. There are several optimization mechanisms that compilers usually get into account when compiling your code to binary. Like dead code elimination, Register allocation, Constant folding or function inlining; you may split your code into smaller and smaller functions and different level of abstractions to ease up future changes and modifications, but from compiler point of view multiple calls to different functions may not be very optimize and sometimes compiler decides to inline your functions!
·theyahya.com·
A Deep Look Into Golang Profile-Guided Optimization (PGO)
One Billion Row Challenge in Golang - From 95s to 1.96s
One Billion Row Challenge in Golang - From 95s to 1.96s
In the One Billion Row Challenge, the task is to write a program capable of reading an 1-billion-line file (with around 13GB), process and aggregate temperature readings from various weather stations, and present a report of the results on console. In this article, I share my experience attempting the challenge with Golang, providing the details of how I achieved 1.96 seconds.
·r2p.dev·
One Billion Row Challenge in Golang - From 95s to 1.96s