-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Speed up
ElementsStabChain
and AsList
for perm groups
The documentation for `ElementsStabChain` never claimed that the result it returns is sorted. So we change it to not do that, by using `Append` instead of `UniteSet`. Then we use that to provide a faster version of `AsList`. As a side effect, this actually even speeds up `AsSet`, as sorting only at the end is cheaper then sorting repeatedly during creation of the list. Some timings: Before: gap> AsList(SymmetricGroup(10));; time; 1507 gap> AsSet(SymmetricGroup(10));; time; 1492 After: gap> AsList(SymmetricGroup(10)); time; 611 gap> AsSet(SymmetricGroup(10)); time; 1120 As another side effect, the output of `AsList(G)` and `List(Iterator(G))` now seem to coincide if `G` is a permutation group.
- Loading branch information
Showing
7 changed files
with
31 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters