We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
We can create a memfd pointing to decompressed problem data, and pass that off to the submissions.
Pros:
Cons(?):
The text was updated successfully, but these errors were encountered:
Support for creation of memfd-backed files is implemented in #836, with unlinked temporary files as fallback on FreeBSD.
This should now be a matter of writing decompressed data into an MemoryIO instance and passing the fd to TracedPopen.
MemoryIO
fd
TracedPopen
Sorry, something went wrong.
Some stats from prod (numbers are the total number of context switches, summed across all test cases):
miracle-base-1: 1402 miracle-base-2: 1201 miracle-tip-1: 47 miracle-tip-2: 57 rmt-base-1: 65887 rmt-base-2: 65318 rmt-base-3: 61411 rmt-tip-1: 25833 rmt-tip-2: 25849
miracle refers to https://dmoj.ca/problem/miraclesort, rmt to https://dmoj.ca/problem/ccc17s5.
miracle
rmt
I expect we could decrease the number of RMT context switches by implementing writing submission output to memfds instead.
Successfully merging a pull request may close this issue.
We can create a memfd pointing to decompressed problem data, and pass that off to the submissions.
Pros:
Cons(?):
The text was updated successfully, but these errors were encountered: