On Wednesday 12 November 2003 11:37, Torsten Curdt wrote:
> >>We could also increasing the max length of a stored
> >>character event in general. ...but that would waste
> >>2 bytes per event. Hm...
> >>
> >>What do you think?
> >>--
> >>Torsten
> >
> > Hi,
> >
> > why should we handle the UTFDataFormat exception, at all?. The last
> > solution ignores this exception, doesn't it? Where is the difference
> > between
> >
> > event
> > string 32k
> > string 4k
> >
> > and
> > event
> > string 36k
> >
> > in the bytestream?
> >
> > The questions is if we need the UTFDataFormatException or not. If not a
> > patch can simply remove the statement if(string>32k){} and then we get
> > the result:
> >
> > event
> > string xxk (the limit is than the java integer-range)
>
> Well, that true ...but the current length is hold
> as 15-bit integer. The highest bit decides whether
> it's an index in a HashMap or not.
>
> As I said we could increase the length to 31-bit
> but that gives 2 additional bytes per character
> event.
>
> Stefano, did I explain this right?!

thanks, thats is what i was confused about.
Simon

Reply via email to