News for hackers. Stuff that matters.
Re:Things Developers Should Know About SQL Server (2013) by millstone on Saturday February 11, 2017 @10:41PM (#13626547)
I don't understand this. Isn't sorting an in-place procedure that does not need to allocate on the heap?
Re:Things Developers Should Know About SQL Server (2013) by twic on Sunday February 12, 2017 @09:22AM (#13628410)
Depends on the sort. A naively implemented mergesort needs a temporary array of the same size as the the array being sorted. But whilst that takes up a chunk of memory for a while, it shouldn't be the sort of thing that makes GC choke.

And anyway, not many people will be using a naively implemented mergesort in this situation!

Re:Things Developers Should Know About SQL Server (2013) by snuxoll on Saturday February 11, 2017 @10:57PM (#13626611)
Sure, as long as you're okay with mutable data structures and the headaches they cause with threading.