Last week Slashdot reader scandum described the search for the most efficient sorting algorithm. Now he's back, touting a new implementation for binary searches (using the same GitHub repo, and written in 15 to 30 lines of C code) that he says may be "up to 40%" faster for 32-bit integers. ("Keep in mind performance will vary depending on hardware and compiler optimizations.") The most commonly used binary search variant was first published by Hermann Bottenbruch in 1962 and hasn't notably changed since. Binary searches are one of the corner stones of computer science... The reason the algorithms are faster appears to be a combination of simpler calculations, branch prediction, and a reduction in cache misses.
Read more of this story at Slashdot.
from Slashdot https://ift.tt/2XigND8
Related Posts :
Study Finds More Than $100 Billion Spent on App Stores in 2020A new report by Sensor Tower reveals that 2020 has been a record-setting year for worldwide spending on the Apple App Store and Google Play … ...
Surprise Ending for Publishers: In 2020, Business Was GoodLike everybody else, book publishers will be happy to see the end of 2020. But for many of them, the year has brought some positive news, wh… ...
VMware Sues Former Executive Who Left for CEO Job at NutanixVMware said that one of its former top executives, Rajiv Ramaswami, violated his contractual obligations while being courted to be the chief… ...
Global Digital-Tax Detente Ends, as US and France Exchange BlowsDetente is ending in the global fight over tech taxes. Earlier this year, France agreed to suspend collection of a tax on digital revenue fr… ...
McConnell Ties Full Repeal of Section 230 To Push for $2,000 Stimulus ChecksOn Tuesday night, McConnell introduced a new bill tying increased stimulus payments to a full repeal of Section 230. From a report: The bill… ...
0 Response to "Is It Possible to Implement Faster Binary Searches?"
Post a Comment