top | item 26207223

(no title)

mns06 | 5 years ago

It's an interesting question: which are the lines of code most frequently executed in the world today?

discuss

order

ianmcgowan|5 years ago

My wild ass guess would be one of: a) some high frequency trading algo, b) ray tracing/collision detection in popular game engines, c) the inner loop of google's spider, d) something common to mobile devices (maybe something in wifi or cell service?), or (most likely) e) the bitcoin hash algo.

It makes for an interesting "how many manholes in Manhattan" interview question, and how you could possibly quantify your guesses...

Imagine being the author of those lines of code, if it was possible to figure out :-)

burntoutfire|5 years ago

I'd add TCP stack in Linux (kernel). Should be hammered constantly on servers of the world and also gets lots of usage on smartphones and IoT stuff.

panic|5 years ago

My money is on Linux's cpu_idle_loop().

amelius|5 years ago

Don't forget bitcoin::compute_hash()

yellowbanana|5 years ago

I would guess that it is something mobile related. Android?

rcgorton|5 years ago

strcpy, strlen, strchr, memcpy, and their varients