Tag: python performance
-
Deque vs List for BFS: 6x Speed Difference at Scale
Compare deque vs list for BFS performance and discover why the wrong choice causes 6x slowdowns at scale. Benchmark data reveals the winner.
-
Quick Sort vs Merge Sort vs Heap Sort: Python Speed Test
Quick Sort beats Merge Sort by 40% on random arrays โ but only with random pivots. Heap Sort is 2x slower despite identical O(n log n) complexity.
-
Pandas GroupBy 2x Faster: Categorical Dtypes on 1M Rows
Speed up Pandas GroupBy 2x with categorical dtypes on large datasets. Real benchmark on 1M rows shows dramatic performance gains and memory savings.