You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Summary:
We can remove some duplicate code and make `__call__` faster by feeding `kwargs` to `_initStructTupleWithValues`. The deleted section in the `else` of `__call__` duplicates the logic in `_initStructTupleWithValues`.
In the new flow, we have 3 cases:
- `kwarg` specified as None -> `_initStructTupleWithValues` sets to default value
- `kwarg is non-`None` -> `_initStructTupleWithValues` sets to new value
- `kwarg` not specified -> `__call__` borrows a new reference to old value
Reviewed By: prakashgayasen, createdbysk
Differential Revision: D74365485
fbshipit-source-id: b25226de15cb7da1b68cb660fa058d8065bee3f0
0 commit comments