Re: huge slowdown on append

2007-12-21 Thread Peter Otten
ianaré wrote: > On Dec 21, 3:29 pm, "ianaré" <[EMAIL PROTECTED]> wrote: >> Hey all, >> >> I have a for loop which included the line: >> >> items_ren.append(join(newPath,renamedItem)) >> >> I changed it to this: >> items_ren.append([join(newPath,renamedItem), False]) >> >> And processing speed is n

Re: huge slowdown on append

2007-12-21 Thread Fredrik Lundh
ianaré wrote: >> I changed it to this: >> items_ren.append([join(newPath,renamedItem), False]) >> >> And processing speed is now much much slower. For 5780 items the old >> function would take 9.5 seconds (there is other stuff going on >> obviously), after changing that single line, speed is now 5

Re: huge slowdown on append

2007-12-21 Thread ianaré
On Dec 21, 3:29 pm, "ianaré" <[EMAIL PROTECTED]> wrote: > Hey all, > > I have a for loop which included the line: > > items_ren.append(join(newPath,renamedItem)) > > I changed it to this: > items_ren.append([join(newPath,renamedItem), False]) > > And processing speed is now much much slower. For 57

huge slowdown on append

2007-12-21 Thread ianaré
Hey all, I have a for loop which included the line: items_ren.append(join(newPath,renamedItem)) I changed it to this: items_ren.append([join(newPath,renamedItem), False]) And processing speed is now much much slower. For 5780 items the old function would take 9.5 seconds (there is other stuff g