[parrot-tickets] [Parrot] #780: [RFC] deprecated parrot_new_pointer_hash and parrot_new_cstring_hash

chromatic chromatic at wgz.org
Mon Jun 22 14:15:05 UTC 2009


On Monday 22 June 2009 03:22:56 Vasily Chekalkin wrote:

> a) 1 usage of cstring Hash in string/api.c for constants. Can be easily
> converted to  normal STRING*. (Thinking little bit) Hey. What about
> unicode constants? Especially UCS2?

That code uses that cache to *avoid* creating new STRINGs when something wants 
a new constant STRING.  If you make it a STRING hash, you might as well remove 
it.

Benchmark it if you do.

-- c


More information about the parrot-dev mailing list