Skip to content

Improve unique directory generation for temp files - #7520

Merged
ericstj merged 3 commits into
mainfrom
ericstj/uniqueTemp
Oct 21, 2025
Merged

Improve unique directory generation for temp files#7520
ericstj merged 3 commits into
mainfrom
ericstj/uniqueTemp

Conversation

@ericstj

@ericstj ericstj commented Oct 3, 2025

Copy link
Copy Markdown
Member

Refactor unique directory creation logic to use random file names.

Fixes #7485

Refactor unique directory creation logic to use random file names.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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} to ml_dotnet_{randomfilename}

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment thread src/Microsoft.ML.Core/Data/Repository.cs Outdated
Comment thread src/Microsoft.ML.Core/Data/Repository.cs Outdated
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@ericstj
ericstj enabled auto-merge (squash) October 3, 2025 18:02
@ericstj
ericstj disabled auto-merge October 21, 2025 21:26
@ericstj
ericstj merged commit bc7afc7 into main Oct 21, 2025
22 of 25 checks passed
@ericstj

ericstj commented Oct 22, 2025

Copy link
Copy Markdown
Member Author

/backport to release/4.0

@github-actions

Copy link
Copy Markdown
Contributor

Started backporting to release/4.0: https://github.com/dotnet/machinelearning/actions/runs/18728685429

This was referenced Nov 19, 2025
@github-actions github-actions Bot locked and limited conversation to collaborators Nov 22, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Slow model loading performance after version 3.0.1

3 participants