-
Notifications
You must be signed in to change notification settings - Fork 7.1k
An optimization for WeightsEnum #5225
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
Conversation
Thank you for your pull request and welcome to our community. Action RequiredIn order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you. ProcessIn order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA. Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with If you have received this in error or have any questions, please contact us at [email protected]. Thanks! |
💊 CI failures summary and remediationsAs of commit 638f705 (more details on the Dr. CI page): ✅ None of the CI failures appear to be your fault 💚
🚧 1 ongoing upstream failure:These were probably caused by upstream breakages that are not fixed yet.
This comment was automatically generated by Dr. CI (expand for details).Please report bugs/suggestions to the (internal) Dr. CI Users group. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yoshitomo-matsubara LGTM, thanks!
@yoshitomo-matsubara You will need to complete the CLA before I can merge this. Just follow the bot's instructions at #5225 (comment) :) |
@datumbox I signed up the CLA with this github account, but they have not recognized it yet |
Thank you for signing our Contributor License Agreement. We can now accept your code for this (and any) Meta Open Source project. Thanks! |
@datumbox |
@yoshitomo-matsubara Sometimes it takes a bit of time for the bot to "see" the change. Thanks for the contribution! |
Reviewed By: jdsgomes, prabhat00155 Differential Revision: D33739384 fbshipit-source-id: 705c72213fd211e3bd3c25225dde402138a23000
As partly discussed in #5088 with @datumbox, the current WegithsEnum class checks if a given str is a member of the class in an iterative way as follows:
Since
__members__
is an instance ofmappingproxy
, we can check it in an efficient way like we do with adict
:cc @datumbox @bjuncek