We propose the introduction of a protocol (ie a specified method with a standardized name) on finite ordered sets in order to access the hash of elements of an ordered set as a Python array. This kind of feature is needed in some situations to implement efficient hashing of composed objects such as permutations encountered in eg #31236.
Note that for "big" finite sets this makes no sense (storing the array would be memory prohibitive). However, as far as symmetric group as concerned, the list of elements of the domain is done anyway.
Sage development has entered the release candidate phase for 9.3. Setting a new milestone for this ticket based on a cursory review of ticket status, priority, and last modification date.
We propose the introduction of a protocol (ie a specified method with a standardized name) on finite ordered sets in order to access the hash of elements of an ordered set as a Python array. This kind of feature is needed in some situations to implement efficient hashing of composed objects such as permutations encountered in eg #31236.
Note that for "big" finite sets this makes no sense (storing the array would be memory prohibitive). However, as far as symmetric group as concerned, the list of elements of the domain is done anyway.
Component: performance
Issue created by migration from https://trac.sagemath.org/ticket/31269