SV: [Zope] xml-rpc performance is very slow

Geir Arne Evjen g-evjen at online.no
Tue Mar 9 05:43:12 EST 2004


I'm using Zope version 2.5.0 under Linux. What surprises me is that even of
I call external methods locally (using localhost) then a xmlrpc call its
approx 5 times slower than calling the function directly (However, this
overhead is so little compared to what I get when using it outside the Linux
box). In the project I'm doing now, I have a Linux box inside a vmware
virtual computer having Windows XP as the hosting operating system. If I do
the same call again (outside the linux box but still locally) the same call
takes approx 20 times more. If I ping the linux box then resonse time is
less than 1 ms. Is it really so mush overhead on calling it externally or is
it obviuos that I do something wrong.

However, I'm not sure what to expect, but since I need to call the server
quite much (I have a GUI which drives it) the speed is quite crucial. One
solution for me would be a multicall functionally, but I'm not sure how I
can implement this, or if a newer version of Zope already has this builtin
(Any tips is appreciated). I've also tested faster XML readers (sgmlop) but
this does not help me much since this problem seems like a communication
problem and not packing/unpacking the xmlfiles.

regards,
Geir Arne Evjen

-----Opprinnelig melding-----
Fra: Chris Withers [mailto:lists at simplistix.co.uk]
Sendt: 9. mars 2004 10:53
Til: Geir Arne Evjen
Kopi: zope at zope.org
Emne: Re: [Zope] xml-rpc performance is very slow


Geir Arne Evjen wrote:

> I've published some external methods in Zope and I'm accessing them using
> xml-rpc. The problem is the performance. It is very slow (I use it
locally)
> Is there something I can do to speed it up?

Perhaps quantify that a bit. Slow compared to what? What do these methods
do?
What version of Zope are you using? What OS?

cheers,

Chris

--
Simplistix - Content Management, Zope & Python Consulting
            - http://www.simplistix.co.uk







More information about the Zope mailing list