-
Notifications
You must be signed in to change notification settings - Fork 165
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
De-duplicate some functions #5657
Conversation
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.
Thanks, very nice! A few quick questions
fi; | ||
return r; | ||
end); | ||
[IsObjWithMemory],0, OneOp); |
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.
This ends up performing a second method dispatch, though, doesn't it? And hence would make this a tiny bit slower...
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.
True, but is it likely to be critical anywhere? I can reverse this if desirable.
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.
Probably not critical, aye.
…Memory As per the manual entry for One etc, the OneImmutable(=One) method calls the OneMutable(=OneOp) method.
Co-authored-by: Max Horn <max@quendi.de>
15e1033
to
51d12dd
Compare
This PR contains some more refactoring of the GAP library code to remove duplicate functions. The functions touched in this PR have identical function bodies (up to whitespace).