performance about istream_input's in_maximum argument #337
-
Hi, i'm tring to handle very big files. Let's say, if 1024 and 102400 are safe, will 102400 do harm to the runtime? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Assuming you are unable to use the 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 Have you already implemented your grammar? If yes, have you tried large values for |
Beta Was this translation helpful? Give feedback.
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 thein_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
orfile_input
, to…