[Y-devel] Proposal: message structure change
Ulrik Mikaelsson rawler at rsn.bth.se
Thu Feb 26 17:50:32 GMT 2004
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I absolutely agree with you on this. Forcing string conversion/parsing of all
types of data, such as integers, is quite suboptimal.
However, there are three other things which I would like to be considered in
the protocol:
* Whether all the header fields REALLY should be 4 bytes long. Should a
message ever be allowed to be larger than 64k, on a synchronized protocol,
for instance?
Pros:
- Smaller header. Lesser overhead may be significant for small operations,
(such as reading and int).
Cons:
- - Stricter limitations.
* Maybe we should add some client-set request-id in the header for
method-calling, property-reading and every request that will have a response,
and thereby allow asynchronous I/O in the protocol?
Pros:
- Allowing asynchronous I/O means better support for threading in the
client/server, which may reduce latencies.
- Asynchronous I/O may significantly increase throughput, especially on
high-latency connections.
Cons:
- Adding a field in the header once again increases overhead, but the field
probably won't have to be more than 1 byte long. (More than 256 simultaneous
connects seems unlikely)
- Asynchronous connection takes a little time to implement properly in all
involved parts, but when modifying the protocol, adding the field might be a
good thing.
* How is character encoding dealt with right now? I'm not really sure whether
the protocol in it's current form would allow things like UTF-8 or UTF-16?
And what about KOI or Japanese language support?
Just my little thoughts.
Regards
/Ulrik
- --
"Life sucks, but death doesn't put out at all...."
- -- Thomas J. Kopp
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)
iD8DBQFAPjHr069SELtZwIkRAmMWAKCFZ83p9oPKxoielGkHIvXSThu2zwCfQIOX
IYUcbE43asucFfq42ZZUdBc=
=mE8C
-----END PGP SIGNATURE-----
More information about the Y-devel mailing list
2026 © www.Y-Windows.Org - All Rights Reserved