Considering mmap() verus plain reads for my recent code
The author discusses whether mmap() would perform better than plain read() for their Python code that maps IPv4 subnets to ASNs. They conclude mmap() would likely be worse due to Python's limitations and single-lookup use case, though performance depends on access patterns. The author recommends using mmap() primarily for code simplicity rather than performance.