I'm having performance problems with Pending.py. Loading in all
filenames and then filtering out everything but *.*.msg is way too
slow.
[gre7g@juggernaut tmda]$ python
Python 2.2 (#1, Feb 24 2002, 16:21:58)
[GCC 2.96 20000731 (Mandrake Linux 8.2 2.96-0.76mdk)] on linux-i386
Type "help", "copyright", "credits" or "license" for more
information.
>>> import time
>>> from TMDA import Pending
>>> a=Pending.Queue();a.initQueue()
<TMDA.Pending.Queue instance at 0x80f1814>
>>> T=time.time();b=a.listPendingIds();print time.time()-T
7.67913091183
>>>
[gre7g@juggernaut tmda]$ ls ~/.tmda/pending/ | wc -l
892
7.7 seconds to process under 900 filenames?
BTW, It's not the computer. If I do it directly:
[gre7g@juggernaut pending]$ python
Python 2.2 (#1, Feb 24 2002, 16:21:58)
[GCC 2.96 20000731 (Mandrake Linux 8.2 2.96-0.76mdk)] on linux-i386
Type "help", "copyright", "credits" or "license" for more
information.
>>> import glob, time
>>> T=time.time(); a=glob.glob("*.*.msg"); print time.time()-T
0.0129660367966
13ms is much more reasonable.
Any chance of changing how you do what you do? Otherwise I need to
keep calling tmda-pending to do my dirty work.
Gre7g.
=================================================================
Gre7g Luterman [EMAIL PROTECTED] http://www.templeofluna.com/
Stay informed: http://www.templeofluna.com/keeper/mailinglist.htm
Never pet a burning puppy.
_________________________________________________
tmda-workers mailing list ([EMAIL PROTECTED])
http://tmda.net/lists/listinfo/tmda-workers