Open atlemann opened 4 years ago
The version of FParsec that is shipped in the FParsec
NuGet package can't parse arbitrarily long streams, see http://www.quanttec.com/fparsec/download-and-installation.html#nuget-packages
The FParsec-Big-Data-Edition
version does, but unfortunately it hasn't yet been ported to .NET Core.
Ok, thanks! Will it require a lot of code change to make it netstandard2.0 or is it more or less a update project files job? I could probably contribute with that although it seems Enrico has done that job already maybe?
AFAIK, the biggest issue is that the encoding decoders in .NET Core are not serializable, which breaks the non-low-trust implementation of CharStream
.
Is there some limitation to how big a file FParsec supports? What I could find out from the code is that it reads by chunks, but I cannot seem to find which StringBuilder.Append is failing.
File.ReadAllText on the same file throws
System.OutOfMemoryException: Insufficient memory to continue the execution of the program.
so I have to parse it in chunks.