[ragel-users] Adding action slows Ragel compilation a lot

Ed Hynes mred at dharmagaia.com
Sun Nov 13 16:18:31 UTC 2011

I'd like to use Ragel to scan some abc notation files, but have run into a problem where Ragel's compilation time expands by a couple of orders of magnitude when I add actions to certain transitions.  Below is a simplified test case that demonstrates the problem.

  machine test;

  action action_x {}
  b = ('a' [a-c]+ 'a') | ([a-c] >action_x 'b');

  main := ('c' b+)+;


The addition of the '>action_x' in machine b triggers the slowdown.  Any suggestions on how to workaround this problem?


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.colm.net/pipermail/ragel-users/attachments/20111113/c94b23bf/attachment-0001.html>
-------------- next part --------------
ragel-users mailing list
ragel-users at complang.org

More information about the ragel-users mailing list