Best way to merge/sort two sorted lists?...

Aaron Watters aaron.watters at gmail.com
Mon Dec 10 10:34:44 EST 2007


On Dec 6, 2:01 pm, Raymond Hettinger <pyt... at rcn.com> wrote:
> On Dec 6, 9:30 am, Aaron Watters <aaron.watt... at gmail.com> wrote:
>
> See recipes:
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/491285
http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/305269

I previously noted in
that I found the first recipe slow and obscure.
Raymond pointed out privately
that it is designed to minimize memory
requirements when merging possibly many files from
a filesystem.  It does that very well, and I apologize
for the offensive tone of my comment.

  -- Aaron Watters
===
http://www.xfeedme.com/nucular/pydistro.py/go?FREETEXT=cryptic+code+performance+hacks



More information about the Python-list mailing list