Doesn't surprise me. It's an interpreted language, so loading up the
interpreter, then the code, then executing is going to take a
certain fixed startup time. It will be completely dwarfed by
mail connection time when you start running an actual list.
Dave Disser wrote:
>
> I just discovered/downloaded/installed mailman yesterday, and am
> getting horrible performance with it, so I hope this is an easy one.
>
> Any mailman operation takes > 5 secs; even bin/list_lists takes 7
> secs. Is it normal for it to take so long? I use list_lists as an
> example because I want to leave the webserver out of the equation.
> My server machine is a 4-way K series with gobs of RAM, so hardware
> doesn't appear to be lacking. Perhaps my copy of python is not
> optimally built? Any help someone can offer would be appreciated.
>
> $ uname -srm
> HP-UX B.10.20 9000/849
>
> $ python
> Python 1.6 (#13, Feb 1 2001, 14:46:49) [C] on hp-uxB
> Copyright (c) 1995-2000 Corporation for National Research Initiatives.
> All Rights Reserved.
> Copyright (c) 1991-1995 Stichting Mathematisch Centrum, Amsterdam.
> All Rights Reserved.
> >>>
>
> $ profile.py list_lists | grep -v 0\\.000 <
> 1 matching mailing lists found:
> Mailman-test - [no description available]
> 1765 function calls (1646 primitive calls) in 7.050 CPU seconds
>
> Ordered by: standard name
>
> ncalls tottime percall cumtime percall filename:lineno(function)
> 3/1 0.050 0.017 7.050 7.050 <string>:1(?)
> 1 0.020 0.020 2.240 2.240 Archiver.py:23(?)
> 1 0.040 0.040 1.030 1.030 Cookie.py:155(?)
> 1 0.010 0.010 0.010 0.010 Defaults.py:20(?)
> 1 0.110 0.110 0.120 0.120 HTMLFormatter.py:18(?)
> 1 0.230 0.230 0.360 0.360 HandlerAPI.py:17(?)
> 1 0.040 0.040 0.490 0.490 ListAdmin.py:25(?)
> 1 0.010 0.010 0.020 0.020 Logger.py:17(?)
> 1 1.570 1.570 6.730 6.730 MailList.py:21(?)
> 1 0.010 0.010 0.010 0.010 MailList.py:862(__load)
> 1 0.240 0.240 2.220 2.220 Mailbox.py:18(?)
> 1 0.090 0.090 0.090 0.090 Message.py:24(?)
> 1 0.060 0.060 1.090 1.090 SecurityManager.py:18(?)
> 1 0.010 0.010 0.030 0.030 StampedLogger.py:17(?)
> 1 0.010 0.010 0.010 0.010 StringIO.py:17(?)
> 1 0.010 0.010 0.040 0.040 Syslog.py:20(?)
> 1 0.010 0.010 0.010 0.010 Utils.py:17(?)
> 1 0.430 0.430 3.810 3.810 Utils.py:24(?)
> 2 0.010 0.005 0.010 0.005 Utils.py:47(list_exists)
> 1 0.010 0.010 0.010 0.010 Utils.py:57(list_names)
> 1 0.020 0.020 2.260 2.260 __init__.py:17(?)
> 1 0.010 0.010 0.010 0.010 htmlformat.py:22(?)
> 1 0.240 0.240 7.000 7.000 list_lists:39(?)
> 1 0.700 0.700 0.700 0.700 mailbox.py:3(?)
> 1 0.020 0.020 0.030 0.030 mm_cfg.py:36(?)
> 1 0.120 0.120 0.130 0.130 random.py:21(?)
> 4 0.010 0.003 0.010 0.003 random.py:75(verify)
> 1 0.180 0.180 1.350 1.350 re.py:23(?)
> 1 0.010 0.010 0.010 0.010 regsub.py:11(?)
> 1 1.010 1.010 1.170 1.170 sre.py:19(?)
> 8/2 0.050 0.006 3.240 1.620 sre.py:61(compile)
> 9/3 0.160 0.018 3.240 1.080 sre.py:91(_compile)
> 1 0.140 0.140 0.150 0.150 sre_compile.py:11(?)
> 43 0.070 0.002 0.070 0.002 sre_compile.py:165(_optimize_charset)
> 47/6 0.750 0.016 1.190 0.198 sre_compile.py:17(_compile)
> 9 0.020 0.002 0.100 0.011 sre_compile.py:229(_compile_info)
> 9/6 0.010 0.001 1.270 0.212 sre_compile.py:338(_code)
> 3 0.010 0.003 0.010 0.003 sre_constants.py:124(makedict)
> 1 0.010 0.010 0.010 0.010 sre_parse.py:11(?)
> 72/34 0.050 0.001 0.050 0.001 sre_parse.py:131(getwidth)
> 3 0.010 0.003 0.010 0.003 sre_parse.py:204(isname)
> 18/9 0.030 0.002 0.340 0.038 sre_parse.py:283(_parse_sub)
> 20/9 0.120 0.006 0.330 0.037 sre_parse.py:338(_parse)
> 9 0.010 0.001 0.010 0.001 sre_parse.py:69(__init__)
> 1 0.080 0.080 0.080 0.080 traceback.py:1(?)
>
> --Dave
>
> ------------------------------------------------------
> Mailman-Users maillist - [EMAIL PROTECTED]
> http://mail.python.org/mailman/listinfo/mailman-users
------------------------------------------------------
Mailman-Users maillist - [EMAIL PROTECTED]
http://mail.python.org/mailman/listinfo/mailman-users