Gre7g Luterman <[EMAIL PROTECTED]> writes: > I'm having performance problems with Pending.py. Loading in all > filenames and then filtering out everything but *.*.msg is way too > slow.
Oops, looks like I screwed the pooch on this one trying to be too cute with list intersections. Try the new implementation I just checked in. It's pretty fast on a PII/233 with 1766 pending messages. Python 2.2.2 (#5, Oct 14 2002, 19:34:49) [GCC 2.7.2.1] on bsdos4 Type "help", "copyright", "credits" or "license" for more information. >>> import time, Pending >>> q = Pending.Queue() >>> q.initQueue() <Pending.Queue instance at 0x822612c> >>> T = time.time();p = q.listPendingIds();print time.time()-T 0.0369480848312 >>> _________________________________________________ tmda-workers mailing list ([EMAIL PROTECTED]) http://tmda.net/lists/listinfo/tmda-workers
