[Zope-PTK] How skins work

Kent Polk kent@goathill.org
23 Jan 2001 21:28:02 GMT


On 20 Jan 2001 22:05:01 -0600, Shane Hathaway wrote:
>Kent Polk wrote:
>>  BTW, is anyone
>> working on SAX/DOM based parser for xmlrpc with Zope for faster
>> data transfer?
>
>Actually I have converted xmlrpclib to use SAX (for a side project) and
>it seems a lot faster.  I was waiting for Zope to support Python 2.0
>before I merged it in, but I suppose one could reap the benefits right
>away with PyXML.
>
>http://www.zope.org/Members/hathawsh/xmlrpclib/xmlrpclib.py
>
>You should be able to simply replace the version in lib/python.

Tests performed under two conditions (with each xmlrpclib):

>>> xmlrpclib.__version__
------
2001-01-23T20:58:55 INFO(0) ZServer 0:4 (eval)> 'xmlrpclib.__version__'
'0.9.8-sax-patch'

New xmlrpclib sending 5727 genope records joined into one string
(resulting string len = 257703) :

01/23/01 15:07:14 : sending infer (len: 257703)
01/23/01 15:07:14 : panel_infer_fnum 

New xmlrpclib sending 5727 genope records as a list of strings:

01/23/01 15:08:08 : sending infer (len: 5727)
01/23/01 15:08:29 : panel_infer_fnum 

===========================
>>> xmlrpclib.__version__
------
2001-01-23T21:12:03 INFO(0) ZServer 0:3 (eval)> 'xmlrpclib.__version__'
'0.9.8'

Old xmlrpclib sending 5727 genope records as a list of strings:

01/23/01 15:13:13 : sending infer (len: 5727)
01/23/01 15:13:33 : panel_infer_fnum 

Old xmlrpclib sending 5727 genope records joined into one string
(resulting string len = 257703) :

01/23/01 15:14:10 : sending infer (len: 257703)
01/23/01 15:14:11 : panel_infer_fnum 

I ran the client and the server on the same host. 'sending infer'
is posted by the client just before calling the server method.
'panel_infer_num' is the first operation the server method performs
after it is called.

Note that it takes about a second to transfer and parse the string
(len: 257703), but it takes about 20 seconds (within 1 second with
several trys) to transfer and parse the list, using either xmlrpclib.

But at least the sax version works :^)