Cody Maloney

Results 29 comments of Cody Maloney

Wrote our own after evaluating a lot of different ones.

I found the source of the remaining `lseek(3, 0, SEEK_CUR)` by using lldb to set a break point and get a backtrace. In `_io.open()` (`_io_open_impl`), by default, buffering is on,...

# Summary ```python # main read_file_large: Mean +- std dev: 24.0 us +- 0.4 us # readall_faster, removes a stat (#120755): read_file_large: Mean +- std dev: 21.2 us +- 0.6...

Could this be reopened? My plan is to keep working on trying to simplify what happens in this case, would like to attach to this issue (strace pr followup test,...

With the set of PRs out currently, have this about as far as I think I can take it without reworking BufferedIO fairly substantially. I've removed the `seek` a couple...

I'll work on opening a new PR for the `strace` refactor + fix the issues. Thanks for the fast revert and investigation. 1. Check `*fstat*` + `statx` as acceptable calls....

@hauntsaninja , @gpshead new PR with the strace helper applied + additional fixups from the revert: https://github.com/python/cpython/pull/123413

re: max_read_size my plan / hope as I get into BufferedIO changes is to make it so can pass in a buffer rather than a max size so that users...

I think I can get BufferedIO to be cheap, it also shows up in reading folders with lots of `.rst`, `.yaml`, `.toml`, etc. files which I've run into a lot....