On Thu, Apr 26, 2012 at 2:27 PM, David Beazley <[email protected]> wrote:
> I've been thinking about some cleanup to PLY lately and have a question.  
> Would anyone actually miss the table output in PLY (parsetab.py, lextab.py) 
> if it were removed entirely?   Here's some context:
>
> The original version of PLY was developed on a 200 MHZ home computer about 12 
> years ago.   At that time, generation of the LALR tables was relatively 
> expensive so creating table files was a way of caching the result and reusing 
> it (much like Python uses .pyc files).   Today,  it's a bit different.   For 
> instance, making the LALR tables for the ANSI C grammar (over 200 rules and 
> nearly 350 states) on a modern machine only takes around a half a second.   
> Thus, I'm honestly wondering if I could just ditch all of that table 
> reading/writing code and not worry about it.
>
> Does anyone have any particular thoughts about this?

One project I worked on was almost as big as the ANSI C grammar.  I
don't think it would have been quite as useful had we needed to wait
for tables every time.  OTOH, processors have come a long way since
then, and I haven't worked on that project in a while.  Personally, I
think I'd want to keep it from doing that work over again.  But I
certainly wouldn't cry about it leaving either. :-)

-John

-- 
You received this message because you are subscribed to the Google Groups 
"ply-hack" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/ply-hack?hl=en.

Reply via email to