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

Add GET_FROM_SORTED_CACHE helper; use it to unify hpcgap/lib/ffe.gi, hpcgap/lib/pcgsperm.gi, hpcgap/lib/zmodnz.gi #3515

Merged
merged 6 commits into from
Jun 24, 2019

Conversation

fingolfin
Copy link
Member

Note that this changes how the undocumented variables GALOIS_FIELDS and CYCLICACHE work. But I verified that no package access them (as it should be). I also think that the new caching approach is not really worse than the old in both cases (the memory overhead is slightly larger for CYCLICACHE).

This could be considered a small step towards resolving issue #1889, but of course the primitive data structure employed here is not exactly ideal. But I decided that instead of waiting for a hypothetical better implementation that may never come, I wanted to have some progress now, so that for fixing issues in zmodnz.gi, I don't have to remember editing two files.

Instead of sorting from scratch, use the insertion position that we computed
anyway. To this end, call POSITION_SORTED_LIST directly instead of Position.
Fixes gap-system#1930 (HPC-GAP: CYCLICACHE cache in CreateIsomorphicPcGroup is racy)
@coveralls
Copy link

coveralls commented Jun 21, 2019

Coverage Status

Coverage decreased (-0.03%) to 85.231% when pulling ff0aa61 on fingolfin:mh/zmodnz into f7f36d7 on gap-system:master.

@fingolfin fingolfin merged commit 098df9c into gap-system:master Jun 24, 2019
@fingolfin fingolfin deleted the mh/zmodnz branch June 24, 2019 21:24
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 topic: HPC-GAP unification topic: library
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants