The length of string when unrolling

6 views
Skip to first unread message

Alexander Myltsev

unread,
Jan 22, 2018, 1:09:22 AM1/22/18
to parboiled2.org User List
Mathias,

Did you have a particular reason to assign autoExpandMaxStringLength to 8? Why isn't it 10, 16, or unlimited? Here: 


A.

Mathias Doenitz

unread,
Jan 22, 2018, 3:18:12 AM1/22/18
to parboil...@googlegroups.com
String unrolling generates quite a bit of code, so there is, as often, a space/time tradeoff to be made.
The hard limit right now is the maximum JVM method size, I don't know after how many unrolled characters things will start to crumble, probably a few 1000.

Cheers,
Mathias

---
mat...@parboiled.org
http://www.parboiled.org
> --
> You received this message because you are subscribed to the Google Groups "parboiled2.org User List" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to parboiled-use...@googlegroups.com.
> Visit this group at https://groups.google.com/group/parboiled-user.
> To view this discussion on the web visit https://groups.google.com/d/msgid/parboiled-user/4ccabf57-5164-4b8e-b17e-69a78190b522%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages