engineering April 26, 2016

An Optimization Exercise

Nick Craver tweets out snippets of the Stack Overflow code base occasionally. About a week ago he showed off a ContainsToken method which has been tuned for performance. This set off a little bit of a benchmarking contest. My final attempt (which is among the fastest) ended up using a lot of tricks, which I…
Avatar for Kevin Montrose
Team Lead, Data

Nick Craver tweets out snippets of the Stack Overflow code base occasionally. About a week ago he showed off a ContainsToken method which has been tuned for performance. This set off a little bit of a benchmarking contest.

My final attempt (which is among the fastest) ended up using a lot of tricks, which I think may be of general interest – so I’m going to walk through how the code works.

View the full post at kevinmontrose.com…

Podcast logo The Stack Overflow Podcast is a weekly conversation about working in software development, learning to code, and the art and culture of computer programming.

Related

He's about to steal some code and write a game changing application.
code-for-a-living May 20, 2020

Good coders borrow, great coders steal

Copying and pasting can be dangerous, but then again, so can many aspects of software development when done incautiously. In this post, I’ll take a look at what code copying actually means for software development, what good code theft means, and the pitfalls of copying badly.