[Y-devel] Proposal for a minor change in the Y-protocol (Modified by Augie Fackler)
Mark Thomas mark at www.y-windows.org
Sat Apr 17 09:49:47 BST 2004
On Thu, 15 Apr 2004, Tim Wood wrote:
> Of course it doesn't /break/ the protocol, since non-4-byte-aligned
> platforms could just work around it, presumably at some degraded
> performance - they would have had to do that with the un-aligned
> protocol anyway. But it seems to me, that it doesn't buy that much
> either - and might lead to people writing code which doesn't fix the
> alignment (or incorrectly "fixes" the alignment) when compiled on an
> unexpected processor (i.e less portable code). Perhaps it is better to
> keep it simple?
This really is the key: *simple* code is (more frequently) *correct* code.
Several of the optimisations given recently are in non-critical sections
of the code (decoding the message, for example, will take a tiny fraction
of the time it takes to perform the action the message requested). There
is no significant advantage to using the optimisation. However, they do
make the code more complicated and thus more error prone and harder to
maintain.
"Premature optimisation is the root of all evil"
-- D. Knuth.
Regards,
Mark.
--
|| Mark Thomas
|| efaref.net
||
|| "I'm so cool you can store meat in me." - Zaphod
More information about the Y-devel mailing list
2026 © www.Y-Windows.Org - All Rights Reserved