Skip to content

Commit

Permalink
add TODO for possible future performance improvement
Browse files Browse the repository at this point in the history
  • Loading branch information
mantepse committed Feb 12, 2025
1 parent 34d865f commit bb64b5b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/sage/data_structures/stream.py
Original file line number Diff line number Diff line change
Expand Up @@ -1951,6 +1951,11 @@ def retract(c):

def fix_cache(j, s, ao):
if s._cache[ao]:
# TODO: perhaps, if not
# self._coefficient_ring.has_coerce_map_from(s._cache[ao].parent())
# we can be certain that there is still an
# undetermined coefficient -- if so, we could replace
# the following line for a performance improvement
if s._cache[ao] in self._coefficient_ring:
s._true_order = True
return False
Expand Down

0 comments on commit bb64b5b

Please sign in to comment.