From: Brian Candler Date: 2003-03-08T01:15:06+09:00 Subject: Re: SOAP, DRb and direct method call (was Re: XmlConfigFile usage) On Sat, Mar 08, 2003 at 12:20:13AM +0900, NAKAMURA, Hiroshi wrote: > And more: > Marshal: binary string/stream <-> Ruby's object > SOAP4R: XML string/stream <-> SOAP Data Model <-> Ruby's object > > So SOAP4R will never be as fast as Marshal, even if I'll rewrite it in C. Sure, although I guess you could go straight from Ruby object to XML string/stream for some common cases like String and Fixnum. > I wrote a server with webrick, which supports HTTP/1.1 > persistent connection to reduce TCP sockets. Ah, that's a nice optimisation, and I hadn't realised that DRb had this unfair advantage. > $ ruby18 drbclient.rb > 0.110000 0.140000 0.250000 ( 0.752000) > $ ruby18 soapclient-xmlscan.rb > 14.130000 0.822000 14.952000 ( 25.227000) > $ ruby18 soapclient-rexml.rb (with soapserver-rexml.rb) > 12.018000 0.821000 12.839000 ( 23.880000) > > 30 times slower. Hmm. I should get profile. Have you done any comparison with xmlparser (the expat-derived one)? I've not installed it yet. Regards, Brian.