Hello. 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? Thanks in advance, Geir Arne Evjen
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
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@simplistix.co.uk] Sendt: 9. mars 2004 10:53 Til: Geir Arne Evjen Kopi: zope@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
On Tuesday 09 March 2004 10:43, Geir Arne Evjen wrote:
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.
Are you sure xmlrpclib was picking up sgmlop correctly? that has resolved any xmlrpc speed problems Ive seen. -- Toby Dickenson
I'm not sure, but I've installed it under the Zope distribution tree as an ordinary site-package. Shouldn't it be found then? Cheers, Geir Arne Evjen -----Opprinnelig melding----- Fra: Toby Dickenson [mailto:tdickenson@geminidataloggers.com] Sendt: 9. mars 2004 12:06 Til: Geir Arne Evjen; Chris Withers Kopi: zope@zope.org Emne: Re: SV: [Zope] xml-rpc performance is very slow On Tuesday 09 March 2004 10:43, Geir Arne Evjen wrote:
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.
Are you sure xmlrpclib was picking up sgmlop correctly? that has resolved any xmlrpc speed problems Ive seen. -- Toby Dickenson
participants (3)
-
Chris Withers -
Geir Arne Evjen -
Toby Dickenson