O(n) Lost to O(n log n): Your Algorithm Didn’t Choose the CPU It Runs On
summary
A C++20 performance study explains why an O(n) deduplication algorithm can lose to an O(n log n) sort-based approach because real runtime depends on caches, allocations, data layout and which CPU core the OS schedules the process on. The talk runs the same code on x86-64, Apple Silicon and mobile ARM64 to show how contiguous memory (sort + unique), hash-table implementation details, core type/frequency and thermal throttling change the crossover point where one algorithm outperforms another.
AI-written summary · about
