-
Notifications
You must be signed in to change notification settings - Fork 1.9k
Improve unique directory generation for temp files #7520
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
Conversation
Refactor unique directory creation logic to use random file names.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR refactors the unique directory creation logic for temporary files to use random file names instead of incrementing directory numbers. The change replaces a counter-based approach with a random filename approach to generate unique temporary directory names.
- Replaces incremental directory numbering with random filename generation
- Simplifies the directory creation loop logic
- Updates the directory naming pattern from
ml_dotnet{number}toml_dotnet_{randomfilename}
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
Co-authored-by: Copilot <[email protected]>
|
/backport to release/4.0 |
|
Started backporting to release/4.0: https://github.com/dotnet/machinelearning/actions/runs/18728685429 |
Refactor unique directory creation logic to use random file names.
Fixes #7485