pyparsing v flex/bison


pyparsing v flex/bison

Actually, updated without some guff

Tokenising longest file I’m likely to need with pyparsing – about 8.5 seconds

Tokenising same file with Flex/Bison – about 0.07 seconds

ie. 2 orders of magnitude speed up.

Of course, Flex/Bison is an order of magnitude more tedious (and involves me understanding strdup and free()).

0 Responses to “pyparsing v flex/bison”



  1. Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s




Blog Stats

  • 219,446 hits

OSWALD Newsletter

If you would like to receive OSWALD, a weekly open source news digest please send an email to oswald (with the subject "subscribe") at opensourcelaw.biz

%d bloggers like this: