[parrot-tickets] [Parrot] #761: [RFC] Keys/Iterator deuglyfying.

Vasily Chekalkin bacek at bacek.com
Wed Jun 24 23:42:32 UTC 2009


Allison Randal wrote:
> Vasily Chekalkin wrote:
>>
>> I've started replacing single VTABLE (get|set)_something_keyed from 
>> internal dispatch to MULTIs in 
>> https://trac.parrot.org/parrot/changeset/39726/ (it's item #4 from 
>> ticket). Question - is it sane? Is it more readable?
> 
> We use hashes extensively at the core of Parrot and can't afford to have 
> every keyed lookup be multiple dispatch (very expensive).

It's actually not... pmc2c generate switch-based VTABLE for MULTIs as 
per TT#452. But I'm EPICLY FAILING trying make it works with 
(set|get)_pmc_keyed...

So, maybe I'll drop idea of using multis in Hash and just made final 
clean-up of Iterator.

-- 
Bacek


More information about the parrot-dev mailing list