Skip to content

performance about istream_input's in_maximum argument #337

Answered by ColinH
shuizaiku7 asked this question in Q&A
Discussion options

You must be logged in to vote

Assuming you are unable to use the mmap-based file input, which would be the preferred way to parse large files (and would sidestep the question of the in_maximum parameter) ... for which there isn't a clear answer regarding performance.

If you need a 100KB maximum buffer size because some actions need to access that large a portion of the input then that should work just fine. If however you need a 100KB buffer because your grammar back-tracks or does a look-ahead across that much of the input then you might have a performance problem. How big of a problem depends on the details of your grammar (and input), and the same problem would presumably occur with e memory_input or file_input, to…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@shuizaiku7
Comment options

@ColinH
Comment options

Answer selected by ColinH
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants