You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello
i have a ragel file that among other things contains something like :
`
.
.
.
dq = """;
nl = ("\n" | "\r" | "\r\n");
tripleQoute = dq dq dq;
blockstring = tripleQoute (any - tripleQoute)* tripleQoute;
simplestring =
dq
(any-dq-nl)*
dq ;
stringvalue = simplestring;
.
.
.
.
}%%`
if i change the stringvalue to be : `
stringvalue = simplestring | blockstring;
`
, the time to compile it increase very dramatically.
(not in this simple example, but within all of my file) compiling time on linux machine goes from 12 sec to 10 MINUTES,
on windows i stopped it after half an hour or so without result. the memory consumption of the process also increase to about 16GB.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
-
Hello
i have a ragel file that among other things contains something like :
`
.
.
.
dq = """;
nl = ("\n" | "\r" | "\r\n");
tripleQoute = dq dq dq;
blockstring = tripleQoute (any - tripleQoute)* tripleQoute;
simplestring =
dq
(any-dq-nl)*
dq ;
stringvalue = simplestring;
.
.
.
.
}%%`
if i change the stringvalue to be : `
stringvalue = simplestring | blockstring;
`
, the time to compile it increase very dramatically.
(not in this simple example, but within all of my file) compiling time on linux machine goes from 12 sec to 10 MINUTES,
on windows i stopped it after half an hour or so without result. the memory consumption of the process also increase to about 16GB.
i'm using ragel 6.10
is there any reason to this time issue ?
Beta Was this translation helpful? Give feedback.
All reactions