Subject | Re: [Firebird-Architect] Data Stream Encoding |
---|---|
Author | Dmitry Yemanov |
Post date | 2005-05-04T18:50:07Z |
"Jim Starkey" <jas@...> wrote:
cycle even on very old CPUs. Considering existance of other code in the
encode/decode routines, I bet we'll see no noticable difference between your
and Geoff's code.
with Geoff.
Could you provide a real data example where your idea shows much more dense
encoding?
Dmitry
>I wouldn't buy this as an argument. Masking or shifting require a single
> Your alternative, striking similar to the PDP-11 instruction word,
> incidentally, requires masking, shifting, a fair bit of navigation to
> get to the specific case.
cycle even on very old CPUs. Considering existance of other code in the
encode/decode routines, I bet we'll see no noticable difference between your
and Geoff's code.
> Orthogonality, however, leads to inefficientI prefer design simplicity rather than absolute density. In other words, I'm
> use of the code space. While there are obvious benefits in large blocks
> of integer literal and short string length code, dedicating the same to
> opaque strings, which are infrequent and rarely short, is a waste of
> code space.
with Geoff.
Could you provide a real data example where your idea shows much more dense
encoding?
> Thanks for your comments and ideas. I think developers can handleUgly and too complex code is often an indication of bad design ideas.
> switch statements with large blocks of labels without that much
> difficulty, but you may be right.
Dmitry