Asmit tyagi retweeted
Run your gym on Autopilot 🔥
Auto WhatsApp receipts,
payment reminders,
member management & revenue tracking.
Starter: ₹199/month (up to 100 members)
Pro: ₹499/month (Unlimited + Most Popular)
1 Month Free Trial → No upfront payment
thegympilot.com #GymOwner
🤖 Made with AI
Asmit tyagi retweeted
Let me talk about something obvious but with a bit of quantification...
Theoretically, both arrays and linked lists take O(n) time to traverse, but here's what actually happens when you benchmark by summing 100k integers
- Array: 68,312 ns
- Linked List: 181,567 ns
Summing an array is ~3x faster than LinkedList. Same algorithm, same complexity, but wildly different performance.
The reason is cache behavior. When you access array[0], the CPU fetches an entire cache line (64 bytes), which includes array[0] through array[15]. The next 15 accesses are essentially free. Arrays hit the cache about 94% of the time.
Linked lists suffer from pointer chasing. Each node is allocated separately by malloc(), scattered randomly in memory. Each access likely requires a new cache line fetch, resulting in a 70% cache miss rate.
This is a good example of why Big O notation tells only part of the story. Spatial locality and cache-friendliness can make a 2-3x difference even when the theoretical complexity is identical.
I am sure you would have known this, but this crude benchmark quantifies just how fast cache-friendly algorithms can be.
Hope this helps.
Asmit tyagi retweeted
Same thing happened with me just now. They said that boAt servers went haywire and orders are getting cancelled so in order to proceed pay online to merchant site. I almost fell for it but retracted from proceeding when they were giving me IFSC code and bank acc no for Gpay.





