From: andrea s. <and...@gm...> - 2005-10-25 12:49:47
|
Gilleain Torrance wrote: > Hi, > > I don't see how you can get rid of this loop actually. > > The thing that occurs to me is that you are loading structures, but > not deleting them! > > So, at the other end of the "for i in KeepStruc" loop, you should > have a "cmd.delete(i)". > > Other than that, you don't need to be opening the files "out" or > "full" inside the loop, or re-reading the data from "amb". > > Hth. > > gilleain torrance cmd.delete() did the job very well (now it takes few mins...rather than 7 hours..) The other suggestions did improve, but not too much. thanks a lot andrea |