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

De-duplicate some functions #5657

Merged
merged 9 commits into from
Feb 28, 2024
Merged

Conversation

james-d-mitchell
Copy link
Contributor

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).

@james-d-mitchell james-d-mitchell added the release notes: not needed PRs introducing changes that are wholly irrelevant to the release notes label Feb 27, 2024
Copy link
Member

@fingolfin fingolfin left a 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);
Copy link
Member

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...

Copy link
Contributor Author

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.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably not critical, aye.

lib/init.g Outdated Show resolved Hide resolved
lib/ffeconway.gi Show resolved Hide resolved
lib/ring.gi Show resolved Hide resolved
lib/grppc.gi Show resolved Hide resolved
lib/algebra.gi Outdated Show resolved Hide resolved
lib/algebra.gi Outdated Show resolved Hide resolved
lib/alglie.gi Outdated Show resolved Hide resolved
@fingolfin fingolfin merged commit b93b8b7 into gap-system:master Feb 28, 2024
25 checks passed
@james-d-mitchell james-d-mitchell deleted the de-duplicate branch February 28, 2024 17:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
release notes: not needed PRs introducing changes that are wholly irrelevant to the release notes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants