compacting _Jv_Utf8Const

Per Bothner per@bothner.com
Wed May 5 19:45:00 GMT 2004


Andrew Haley wrote:

> I can speak to that: changes to _Jv_Utf8Const aren't yet being
> considered, so I don't think the new ABI plans affect this.

I wondered if there were any other ideas floating around for reducing 
the cost of _Jv_Utf8Const.

>  > Finally, one could compress the actual characters, i.e. use a more 
>  > compact special-purpose encoding than UTF8.  6 bits per characters, with 
>  > some escape mechanism, should be enough, but saving 25% is probably not 
>  > enough to justify the complexity.
> 
> You rather sound like you don't really want to change it...

I suggest not trying to comparess the actual chracters (i.e. keep them 
as UTF8), but I think it might be worthwhile to comparess the header as 
I suggested.

Any suggestions for easily counting the number of _Jv_Utf8Const objects 
in libgcj?
-- 
	--Per Bothner
per@bothner.com   http://per.bothner.com/



More information about the Java mailing list