Dates take a lot of time: performance tuning date strings in RavenDB

added by JudahGabriel
1/21/2015 5:14:14 PM

4 Kicks, 317 Views

RavenDB uses a lot of dates, from the last modified metadata on a document to the timestamp of an index or when a query was started or... you get the point, lots and lots of dates. Dates in RavenDB are usually formatted in the following manner: 2015-01-15T00:41:16.6616631 This is done using the following date time format: yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffff This is pretty awesome.


1 comments

JudahGabriel
1/21/2015 5:21:27 PM
I liked this article because it show that optimizations are ugly, but sometimes necessary when hitting a hot path. It also shows some simple optimization techniques, including lookup tables, unsafe C# code, and minimal allocations to squeeze performance out of primitives like dates and strings.