spent some time digging deeper into AVX2 - a SIMD

Arpit Bhayani

Arpit Bhayani

Feb 20, 2025 • 1 min read


spent some time digging deeper into AVX2 - a SIMD instructions set that allows cpu to process multiple data elements in parallel within a single instruction.

If your workload requires batch processing of sequential data then this can significantly speed up the executions. To understand this better, I wrote binary search and summation of array elements using avx2 in cpp. it is so much fun to write this stuff.

always wanted to spend time learning this. finally found some time. should have done this years ago, but better late than never.

if this does not make you fall in love with engineering, nothing ever will :)

by the way, if you want to take a look at the source code, I have pushed it on my experimental repository; linked in the comments.

Arpit Bhayani

Principal Engineer II at Razorpay - building Agent Studio, Ex-staff engg at GCP Memorystore & Dataproc, Creator of DiceDB, ex-Amazon Fast Data, ex-Director of Engg. SRE and Data Engineering at Unacademy. I spark engineering curiosity through my no-fluff engineering videos on YouTube and my courses