Optimizing string to date format conversion in Go?
Faster TIme Parsing in Go – a story in 3 acts – by Phil Pearl at Ravelin
A great story of performance refactoring and profiling.
But why go to the effort?
Well, when you process billions of records in a NoSQL database and you made a decision early on to store dates in as a string because
— why worry about typing when you’re prototyping? —
The takeaway lesson from Ravelin is:
Friends don’t let friends store dates in the database as strings
Phil Pearl’s blog is often about performance tuning for big data and definitely a good read worth checking out.