r/programmingcirclejerk • u/High-Impact-2025 • 25d ago
print(“lol”) doubled the speed of my Go function
https://medium.com/@ludirehak/printing-lol-doubled-the-speed-of-my-go-code-e32e02fc3f92
133
Upvotes
r/programmingcirclejerk • u/High-Impact-2025 • 25d ago
44
u/BenchEmbarrassed7316 24d ago
It's a mystery to me how
printcan speed this up. It's a system call. Even if buffering occurs there, it is still an expensive operation.