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 would propose to stick to this one for offical distriibution, then we
can make speed tests, if it will make any difference, prepare second
version, optimized more for speed at cost of space. But if you will take
cache into account, your version could be faster even then.
Artur