From: Archie Cobbs (archie@whistle.com)
Date: Mon Dec 21 1998 - 00:30:16 EST
Godmar Back writes:
> About names:
>
> How about instead of this:
I am not at all passionate about the naming convention. I was just
trying to impose a little order on what seemed to me a rather
haphazard comglomeration of names and delcarations scattered
throughout various *.c and *.h files.. Please go ahead and change
the names if you want. I think your scheme is a little clearer.
> So, can you describe in one paragraph or less what the purpose of
> these fake utf8Const is?
The idea is this: if you are going to create something, and then
check if it's already interned, and if so then throw it away and use
the already interned version, then using a "fake" version avoids
allocating a chunk of memory that is immediately forgotten (and
thus puts unnecessary work to the GC).
The same trick is done in string.c in stringCharArray2JavaInterned()
(which we now have to use in light of your JLS exerpt!)
-Archie
___________________________________________________________________________
Archie Cobbs * Whistle Communications, Inc. * http://www.whistle.com
This archive was generated by hypermail 2b29 : Sat Sep 23 2000 - 19:57:26 EDT