Re: python readlines() is slow when run in an apache2 cgi running in a vserver

2007-02-21 Thread Alexandre Rossi
So, I finally solved my problem[1]. Darcsweb was slow under vserver because python dup2 is slow when ulimit -H -n is high : closing all those fd's in a python loop is slow, see Lib/popen2.py in the python source that says : for i in xrange(3, MAXFD): try: os.close

python readlines() is slow when run in an apache2 cgi running in a vserver

2007-01-23 Thread Alexandre Rossi
Hi, I'm just clueless with one particular behavior of the readlines function. I've written a sample program that illustrates this "prehaps bug" I'm encountering. The box I used for this is an AMD Sempron 2800+ with 256 Mb of RAM : - When run on this standard etch box as a cgi script in apache2,