[Padre-dev] Implementing PPI's Tokenizer in XS?

Adam Kennedy adamkennedybackup at gmail.com
Thu Jan 8 15:31:32 PST 2009


I did create an initial framework for selectively "accelerating" parts
of PPI, which you can find at PPI::XS
(http://svn.ali.as/cpan/trunk/PPI-XS). The small amount of code there
makes it only about 3% faster.

Steffen Mueller has mentioned though, that the benefits of this
approach are not likely to be truly enormous, because if we're cherry
picking a function here and a function there, then there's only so far
that we can make it faster.

He recommends instead that a large amounts of code get moved behind
the XS boundary...

The tricky part is that PPI::Tokenizer is very complex (although I'm
sure I could describe the approach it takes well enough to provide a
good starting point) and it would probably end up being a fairly large
amount of C, and then would need to be kept in sync with the Perl
version.

Adam K

2009/1/9 Shmuel Fomberg <semuelf at 012.net.il>:
> Hi All.
>
> I've been looking on PPI's tokenizer, and considered porting it to C.
> Is there any effort going on this direction that I can join to?
>
> I have a bit of experience with XS - did STAF's (other open source
> project) Perl support. (that was embedding Perl inside C, and C inside Perl)
>
> Shmuel.
> _______________________________________________
> Padre-dev mailing list
> Padre-dev at perlide.org
> http://mail.perlide.org/mailman/listinfo/padre-dev
>


More information about the Padre-dev mailing list