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

Change fsnotify event operation check #11432

Closed
wants to merge 1 commit into from

Conversation

sevein
Copy link

@sevein sevein commented Sep 6, 2023

This pull request takes advantage of a new feature added to fsnotify v1.6.0 that allows for checking event operations using the Has method instead of direct bitwise operations. The former may be clearer for most developers.

I'm not sure if the overhead of calling the Has method would be significant. While it seems like a good candidate for inlining by the Go compiler, I haven't been able to prove that is happening at all. Let me know your thoughts!

fsnotify v1.6.0 added a Has method that makes operation checks clearer.
Direct bitwise operations require a bit more thought to parse.
@CLAassistant
Copy link

CLAassistant commented Sep 6, 2023

CLA assistant check
All committers have signed the CLA.

@sevein sevein closed this Oct 19, 2023
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.

None yet

2 participants