Tag

dynamic array

0 views collected around this technical thread.

Python Programming Learning Circle
Python Programming Learning Circle
Feb 14, 2022 · Fundamentals

Python List vs Set: Performance Comparison and Underlying Implementation Details

This article compares the lookup speed of Python lists and sets on large datasets, presents benchmark code and results, and explains why sets are dramatically faster by examining the internal C‑level implementations of list (dynamic array) and set/dict (hash table) including resizing rules and collision‑resolution strategies.

PerformancePythondata structures
0 likes · 13 min read
Python List vs Set: Performance Comparison and Underlying Implementation Details
Python Programming Learning Circle
Python Programming Learning Circle
Jan 24, 2022 · Fundamentals

Comparing Python List and Set Lookup Performance and Their Underlying Implementations

This article benchmarks Python list versus set lookups on large datasets, explains why sets are dramatically faster, and delves into the internal C‑level implementations of list as a dynamic array and set/dict as hash tables, including resizing rules and collision handling.

PerformancePythondata structures
0 likes · 12 min read
Comparing Python List and Set Lookup Performance and Their Underlying Implementations