[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [xmpp] Fwd: Use of namespace in RFC 3920



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 9/24/09 12:39 PM, Joe Hildebrand wrote:
> On 9/24/09 11:29 AM, "Jack Moffitt" <jack at collecta.com> wrote:
> 
>>> As long as your server has not been coded to check the first byte of the
>>> element name for fast routing decisions.  I know of at least two servers
>>> that do this.
>> Surely it's not that much less efficient to check the first byte
>> following the ':' instead?  This does at least provide a good reason
>> why it was set in stone to begin with.
> 
> A) it's a backward-compatibility issue
> B) the ':' is not at a fixed offset, so you have to scan up to it.

The original jabberd server code looks to see if the element begins with
"<m" for message, "<p" for presence, and "<i" for IQ...

Not that that's the right thing to do, mind you.

/psa

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkq7vaYACgkQNL8k5A2w/vwhqwCgscCCAMFbhvVZ8/YP1xhcO4Xg
MWAAnj26RFYL8bbQmF7MIUpjuBzIi9ke
=qelB
-----END PGP SIGNATURE-----

Note Well: Messages sent to this mailing list are the opinions of the senders and do not imply endorsement by the IETF.