[Y-devel] Proposal: message structure change
Maurice van der Pot griffon26 at kfk4ever.com
Thu Feb 26 22:01:10 GMT 2004
On Thu, Feb 26, 2004 at 08:53:01PM +0000, Mark Thomas wrote:
> Ulrik Mikaelsson wrote:
> >I absolutely agree with you on this. Forcing string conversion/parsing of
> >all
> >types of data, such as integers, is quite suboptimal.
>
> Since the client could be on a machine with a different number
> representation, *some* conversion is going to have to happen.
>
> int -> string -> int isn't as slow as you might expect, and it certainly
> simplifies the protocol.
Demanding that all numbers should always be of one particular endianness
isn't an unreasonable requirement, is it? And if you're worried about
the readability of the protocol while debugging it, you can always write
a filter for ethereal to help you with it. Also, you develop it only once,
people use it billions of times.
I think you shouldn't discard easy optimisations like this. Lots of little
slowdowns still amount to something.
Maurice.
More information about the Y-devel mailing list
2026 © www.Y-Windows.Org - All Rights Reserved