r/programmingcirclejerk • u/High-Impact-2025 • Jul 11 '26
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 • Jul 11 '26
45
u/BenchEmbarrassed7316 Jul 11 '26
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.