News for hackers. Stuff that matters.
Re:I've been a software engineer for 10 years and I can't do... by btschaegg on Monday March 06, 2017 @02:21PM (#13805249)
Not sure if I'm overlooking something obvious, but given the possibility to reduce dates/times into simple integers (doable according to the example), you should be much faster sorting the data and using and intelligent comparing than allocating a tree with O(n•logn) nodes. Those heap allocation should slow you down drastically, at least for any problem size where linear work is still efficient enough.

There are no comments on this comment yet.