Skip to content

Commit bb64b5b

Browse files
committed
add TODO for possible future performance improvement
1 parent 34d865f commit bb64b5b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/sage/data_structures/stream.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1951,6 +1951,11 @@ def retract(c):
19511951

19521952
def fix_cache(j, s, ao):
19531953
if s._cache[ao]:
1954+
# TODO: perhaps, if not
1955+
# self._coefficient_ring.has_coerce_map_from(s._cache[ao].parent())
1956+
# we can be certain that there is still an
1957+
# undetermined coefficient -- if so, we could replace
1958+
# the following line for a performance improvement
19541959
if s._cache[ao] in self._coefficient_ring:
19551960
s._true_order = True
19561961
return False

0 commit comments

Comments
 (0)