[Zope] RESPONSE.write() slow

2000-08-12 Thread Philipp Auersperg

I want to be able to download dynamic content (coming from a relational database) via 
Zope as a file.
I do this by calling RESPONSE.write() which works fine but it is very slow

When I download a greater package with an External method (on the bottom of the mail),
I just get downloads of 3 to 12 KB/s in my LAN and even locally on the same machine.
Also the thread sending the data uses 90% CPU.
Can anybody tell me why it is so slow or how I can speed that up?
I am using a standalone Zope 2.2.0 with standard ZServer

Thanks in advance
Philipp Auersperg



def streamTest(self,RESPONSE):
   RESPONSE.setHeader('Content-Type','text/richtext') 
   i=0
   while i 10:
  RESPONSE.write('hallo')
  i=i+1

   RESPONSE.close()


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )




[Zope] RESPONSE.write()

2000-08-06 Thread Pedro Vega

Hi all.
I am using RESPONSE.write() for stream oriented output in a python function,
but I don´t know the length of the data so I can´t set Content-Length and
the browser don´t display anything if the Content-Length header is not set.

This is my little problem, any suggestion ?

Pedro Vega


___
Zope maillist  -  [EMAIL PROTECTED]
http://lists.zope.org/mailman/listinfo/zope
**   No cross posts or HTML encoding!  **
(Related lists - 
 http://lists.zope.org/mailman/listinfo/zope-announce
 http://lists.zope.org/mailman/listinfo/zope-dev )