On Feb 16, Artur Biesiadowski wrote:
> Jochen Hoenicke wrote:
> 
> > I think the optimum is:
> >   shift = 6,
> >   data  : byte[7808], block:char[1024],
> >   flags : byte[158], lowercase,uppercase,numValue : char[158]
> > Total size: 10962 bytes (+/- Unicode Version Number)
> 
> I have encoded flags directly into data, so it took me an int to do it,
> and then 4 shift was best - but then it takes about 25kb of data. I
> think that 15 kb of save is better than one less array access for most
> calls after all.

I have now made the data array a char array (so that I can easily use
the string trick).  The data array contains the flags directly and a
pointer to the lower/upper/numValue arrays.  I have further optimized
the perl script, so that it merges the blocks, if the head and the
tail of two different blocks match.  

I put the classes at the usual URL.  They are currently completely
untested, though.
http://www.informatik.uni-oldenburg.de/~delwi/classpath

  Jochen

Reply via email to