[RFC] Possible PCT performance improvements.

Jonathan Worthington jonathan at jnthn.net
Sat Aug 14 23:39:34 UTC 2010


Austin Hastings wrote:
> It seems likely to me that using
>      if $var.name[0] == '&' {
>
> might be faster, without any need to do any more work. Can you try this?
>
Perl 6 strings don't array-index to provide a 
char/grapheme/codepoint/whatever - if this does work, its an artefact of 
Parrot's String PMC, and thus not something I'd want to introduce to 
make the compiler rely on.

The streq_at op approach, OTOH, sounds very promising.

Thanks,

Jonathan



More information about the parrot-dev mailing list