Next day Quote by Peter Seibel
““I would send out some contests. “Here's some code. Here's the benchmark. Make it fast.” I sent our load balancer's header parsing. We were all writing crazy regexps that didn't backtrack and tried to capture things with the most efficient capture groups. And we were all competing, getting faster and faster and faster. Then one guy comes over the next day. He had written it all in C++ with XS, and so he was like, “I win.””
About This Quote
Source Blog post: “The Art of Code Competition”, 2005
Competitive coding drives performance improvements, but sometimes simpler solutions win.
In simple terms: Coding contests spur optimization.
Leverage competition to improve code.
Themes
Mood
Type
When to use this quote
- load balancer development
- benchmarking
- team challenges
Key Concepts
Questions to Reflect On
- How to keep code maintainable while optimizing?
- What incentives foster healthy competition?
Focus on readability may be sacrificed.