-
-
Notifications
You must be signed in to change notification settings - Fork 100
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
Can we use IsEqualGUID
in the GUID.__eq__
?
#659
Comments
IsEqualGUID
in the GUID.__eq__
.IsEqualGUID
in the GUID.__eq__
.
IsEqualGUID
in the GUID.__eq__
.IsEqualGUID
in the GUID.__eq__
?
New contributor here, I've benchmarked both implementations of Buffer implementation:
IsEqualGUID Implementation:
There is a performance difference of ~12% (150 ns/exec, 60 ms total) in favor of |
Thank you for your investigation. Welcome to our community! Which Python version did you test this on? From your investigation, I understand that the How frequently is |
Python 3.11.0 was used for testing. I'm not exactly sure how to give a good answer for frequency of |
The module defining
GUID
includes the following "Note":comtypes/comtypes/_post_coinit/guid.py
Lines 26 to 27 in 083c19e
However, this note was written at the very start of this project, even before the release of Python 3.0.
CPython and
ctypes
have improved over the past years.Is there a performance difference between the current implementation and an implementation with
IsEqualGUID
like the following?After comparing benchmarks, if it proves effective, feel free to submit a PR.
The text was updated successfully, but these errors were encountered: