Skip to content

Use Path.GetTempPath to ensure IO happens Windows/Linux temp folder #7346

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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

ramonsmits
Copy link
Member

@ramonsmits ramonsmits commented Jun 19, 2025

Use Path.GetTempPath to ensure IO happens Windows/Linux temp folders (TEMPDIR,TEMP,TMP). On Linux this almost always is a tmpfs RAM drive and much faster.

During testing of the following PR I noticed tmpfs wasn't used:

…s (`TEMPDIR,`TEMP,`TMP`). On Linux this almost always is a `tmpfs` RAM drive and much faster.
@ramonsmits ramonsmits self-assigned this Jun 19, 2025
@danielmarbach
Copy link
Contributor

I have a vague memory this was debated in the past and we concluded we don't want by default fill a directory outside the running directory because fulling up the users temp drives is not really great and the benefit of having it in the app domain directory is that you can clean things with all the other temporary "build" artifacts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants