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

Improve filesystem file resizing #2771

Merged
merged 2 commits into from
Jul 1, 2022
Merged

Conversation

AreaZR
Copy link
Contributor

@AreaZR AreaZR commented Jun 8, 2022

Replace SetFilePointerEx with SetFileInformationByHandle

Fixes #2767.

@AreaZR AreaZR requested a review from a team as a code owner June 8, 2022 14:33
stl/src/filesys.cpp Outdated Show resolved Hide resolved
stl/src/filesys.cpp Outdated Show resolved Hide resolved
@StephanTLavavej StephanTLavavej added performance Must go faster filesystem C++17 filesystem labels Jun 8, 2022
@StephanTLavavej StephanTLavavej changed the title Improve filesystem handling Improve filesystem resizing Jun 8, 2022
@StephanTLavavej StephanTLavavej changed the title Improve filesystem resizing Improve filesystem file resizing Jun 8, 2022
@StephanTLavavej StephanTLavavej added the affects redist Results in changes to separately compiled bits label Jun 10, 2022
stl/src/filesys.cpp Outdated Show resolved Hide resolved
@AreaZR AreaZR force-pushed the FileSystem branch 5 times, most recently from 7c4d562 to f29dd4c Compare June 12, 2022 15:36
stl/src/filesys.cpp Outdated Show resolved Hide resolved
stl/src/filesystem.cpp Outdated Show resolved Hide resolved
Replace SetFilePointerEx with SetFileInformationByHandle
Copy link
Contributor

@strega-nil-ms strega-nil-ms left a comment

Choose a reason for hiding this comment

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

Nit, but otherwise approve

stl/src/filesys.cpp Show resolved Hide resolved
stl/src/filesys.cpp Outdated Show resolved Hide resolved
@StephanTLavavej
Copy link
Member

As discussed in #2766, I've pushed changes to directly test these BOOLs. This is now Ready To Merge, but I'm marking it as Blocked until changes start flowing into VS 2022 17.4 Preview 2 in a couple of weeks.

@StephanTLavavej StephanTLavavej added the blocked Something is preventing work on this label Jun 22, 2022
@StephanTLavavej StephanTLavavej removed the blocked Something is preventing work on this label Jun 29, 2022
@StephanTLavavej StephanTLavavej self-assigned this Jun 30, 2022
@StephanTLavavej
Copy link
Member

I'm mirroring this to the MSVC-internal repo - please notify me if any further changes are pushed.

@StephanTLavavej StephanTLavavej merged commit c176c15 into microsoft:main Jul 1, 2022
@StephanTLavavej
Copy link
Member

Thanks for reducing the number of OS calls in the filesystem implementation! 📁 🎉 😸

fsb4000 pushed a commit to fsb4000/STL that referenced this pull request Aug 13, 2022
Co-authored-by: Stephan T. Lavavej <stl@nuwen.net>
@AreaZR AreaZR deleted the FileSystem branch September 26, 2022 16:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects redist Results in changes to separately compiled bits filesystem C++17 filesystem performance Must go faster
Projects
None yet
Development

Successfully merging this pull request may close these issues.

<filesystem>: Resize files in a better way
5 participants