10000 gh-120754: Reduce system calls in full-file readall case by cmaloney · Pull Request #120755 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

gh-120754: Reduce system calls in full-file readall case #120755

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 15 commits into from
Jul 4, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension 8000

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix warning around type coercion on 64 bit windows; range is explicit…
…ly checked
  • Loading branch information
cmaloney committed Jun 19, 2024
commit dd0b2943db06d526977e2aa7b3d023cce550d6a4
2 changes: 1 addition & 1 deletion Modules/_io/fileio.c
Original file line number Diff line number Diff line change
Expand Up @@ -751,7 +751,7 @@ _io_FileIO_readall_impl(fileio *self)
Py_END_ALLOW_THREADS

if (end >= pos && pos >= 0 && end - pos < PY_SSIZE_T_MAX) {
bufsize = bufsize - pos;
bufsize = bufsize - (size_t)(pos);
}
}
}
Expand Down
Loading
0