Skip to content
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

Delete faster file cache #219

Merged
merged 89 commits into from
Jun 12, 2024
Merged

Delete faster file cache #219

merged 89 commits into from
Jun 12, 2024

Conversation

Dabnsky
Copy link
Contributor

@Dabnsky Dabnsky commented May 23, 2024

What type of Pull Request is this? (check all applicable)

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update

Describe your changes in brief

These changes optimizes the deletions and other open() calls that the windows OS invokes on files that don't require downloaded data.

summarized changes:

Moved the download logic out of the filecache.OpenFile() into downloadFile(). OpenFile() now spits out an empty handle with flags and filemode data stored in the handle.values map that downloadFile() uses.

downloadFile() is invoked by ReadInBuffer() and WriteFile() when the handle.value exists.

Checklist

  • Tested locally
  • Added new dependencies
  • Updated documentation
  • Added tests

Related Issues

  • Related Issue #
  • Closes #

Dabnsky and others added 20 commits February 1, 2024 14:42
…rface lag and write issues."

This reverts commit bd0b50b.
-exported download() to DownlaodFile() for tests
-added isDownloadRequired logic in TruncateFile()
@Dabnsky Dabnsky requested a review from ahuynh1289 May 24, 2024 17:53
Copy link
Contributor

@foodprocessor foodprocessor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very close!

component/file_cache/file_cache.go Outdated Show resolved Hide resolved
component/file_cache/file_cache.go Outdated Show resolved Hide resolved
component/file_cache/file_cache.go Outdated Show resolved Hide resolved
component/file_cache/file_cache.go Outdated Show resolved Hide resolved
component/file_cache/file_cache.go Outdated Show resolved Hide resolved
Copy link
Contributor

@foodprocessor foodprocessor left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Woohoo! 🥳🥳🥳

@Dabnsky Dabnsky requested a review from jfantinhardesty June 12, 2024 19:28
@Dabnsky Dabnsky requested a review from jfantinhardesty June 12, 2024 22:20
component/file_cache/file_cache_test.go Outdated Show resolved Hide resolved
component/file_cache/file_cache_test.go Outdated Show resolved Hide resolved
component/file_cache/file_cache_test.go Outdated Show resolved Hide resolved
component/file_cache/file_cache_test.go Outdated Show resolved Hide resolved
component/file_cache/file_cache_test.go Outdated Show resolved Hide resolved
@Dabnsky Dabnsky requested a review from jfantinhardesty June 12, 2024 22:41
@Dabnsky Dabnsky merged commit 3fcfe20 into main Jun 12, 2024
17 checks passed
@Dabnsky Dabnsky deleted the delete-faster-fileCache branch June 12, 2024 23:27
@jfantinhardesty jfantinhardesty linked an issue Oct 30, 2024 that may be closed by this pull request
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.

File Deletion in Windows File Explorer Takes ~1s per File
3 participants