elf parsing should use buffered reads #907
Labels
enhancement
Solving this issue will likely involve adding new logic or components to the codebase.
standard library
This issue involves writing Zig code for the standard library.
Milestone
We are using unbuffered file input for reads. When performing a stack trace we need to parse the elf for information and this is doing it one byte at a time resulting in an enormous number of read syscalls.
We should be able to use
io.BufferedInStream
, we just need to reset the input buffer if we perform a seek.I wonder if it would be beneficial it would be to default to buffering with an
io.FileInStream
and have an explicit opt-outio.UnbufferedFileInStream
since this particular use case may be common enough?The text was updated successfully, but these errors were encountered: