Get the latest tech news

Optimizing uint64_t Digit Counting: A Method that Beats Lemire's by up to 143%


A suite of benchmarks. Contribute to RealTimeChris/BenchmarkSuite development by creating an account on GitHub.

template<typename value_type> std::vector<value_type> generateRandomIntegers(size_t count, size_t maxLength) { auto randomIntegers = generateRandomIntegers<value_type>(count, sizeof(value_type) == 4 ? bnch_swt::benchmark_stage<"compare-decimal-counting-functions-" + name>::template runBenchmark<"n-digits", "cyan">([&]() {

Get the Android app

Or read this on Hacker News

Read more on:

Photo of method

method

Photo of lemire

lemire

Photo of uint64_t digit

uint64_t digit

Related news:

News photo

Researchers have developed a method for extracting gold from electronics waste, then using the recovered precious metal as a catalyst for converting carbon dioxide (CO2), a greenhouse gas, to organic materials

News photo

Method for the determination of the luminance of two-photon vision stimuli

News photo

Researchers develop method to make sound waves travel in one direction only | The research has applications in various fields, including radar technology and signal routing