stevedlawrence opened a new pull request, #1499: URL: https://github.com/apache/daffodil/pull/1499
When an input file for the CLI is not stdin, it currently maps the file to a MappedByteBuffer, which gives significant performance gains, especially for large files. However, for non-regular files like fifo files, devices, sockets, the map functions are undefined. In practice, we get a byte buffer but the result is a buffer with zero bytes, leading to the CLI parse/unparse seeing no data. To fix this, the CLI now checks if a file is regular, and only if it is regular will it consider mapping the file. Non-regular files use the existing fallback streaming behavior. DAFFODIL-3002 -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
