News for hackers. Stuff that matters.
Re:Why is it faster to process a sorted array than an unsort... by peterkelly on Saturday May 18, 2019 @11:15AM (#19947857)
This looks like one of those questions to which the author already knows the answer, and posts the question on an alternate account so they can get all the upvotes for their subsequent detailed explanation for the behavior of their contrived example.
Re:Why is it faster to process a sorted array than an unsort... by bonoboTP on Saturday May 18, 2019 @11:20AM (#19947888)
You don't have to do that on StackOverflow (and other StackExchange sites). It is explicitly encouraged to answer your own questions, or put in other words: to share your knowledge in a Q&A format.
Re:Why is it faster to process a sorted array than an unsort... by otherme123 on Saturday May 18, 2019 @11:53AM (#19948084)
https://stackoverflow.com/help/self-answer

If you are in SO for the points, splitting them between two accounts seems lame. Remember that the question also collects points and badges!

I've never checked the user that answers to see if it's the same user that is asking, and it happened to me a couple of times that I tried to upvote my own answer.

Re:Why is it faster to process a sorted array than an unsort... by jve on Saturday May 18, 2019 @11:55AM (#19948096)
Re:Why is it faster to process a sorted array than an unsort... by mattkrause on Saturday May 18, 2019 @01:07PM (#19948468)
Really? I think a lot of newbie programmers go through a phase where they benchmark random things. I can easily imagine 15 year old me stumbling upon this and thinking that it’s some kind of black magic.