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

optimize #[cfg] #244

Merged
merged 4 commits into from
Feb 26, 2024
Merged

optimize #[cfg] #244

merged 4 commits into from
Feb 26, 2024

Conversation

loongs-zhang
Copy link
Contributor

@loongs-zhang loongs-zhang commented Feb 23, 2024

Since learning about #243 (comment), I have changed my mind and decided to improve the existing poller.

overlapped.Anonymous.Anonymous.OffsetHigh =
((seek_offset as i64 >> 32) & 0xFFFFFFFF) as u32;
// see https://learn.microsoft.com/zh-cn/windows/win32/api/fileapi/nf-fileapi-readfile
ReadFile(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ihciah notice this change, I mistakenly thought that this method was only used for network IO before.

overlapped.Anonymous.Anonymous.OffsetHigh =
((seek_offset as i64 >> 32) & 0xFFFFFFFF) as u32;
// see https://learn.microsoft.com/zh-cn/windows/win32/api/fileapi/nf-fileapi-writefile
WriteFile(
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@ihciah notice this change, I mistakenly thought that this method was only used for network IO before.

Copy link
Member

@ihciah ihciah left a comment

Choose a reason for hiding this comment

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

Thank you!

@ihciah ihciah merged commit a258e59 into bytedance:master Feb 26, 2024
26 checks passed
@loongs-zhang loongs-zhang deleted the optimize-cfg branch February 27, 2024 08:25
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