Steven D'Aprano wrote:
> So, what's going on? Can anyone explain why the code which does more work 
> takes less time?

Short answer: CPU and RAM are much faster than hard disks.

The three loops and the creation of a list costs only a few CPU cycles
compared to flushing the new data to disk.

Christian

-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to