Skip to content

Commit 4809ff8

Browse files
In ribbon_concordant_links, slightly reduce the amount of simplification for 4-times speedup
1 parent ccdb0a3 commit 4809ff8

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

spherogram_src/links/bands/search.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,12 @@ def log_progress(message):
237237
elif R1_R2_only:
238238
L.simplify('basic')
239239
else:
240-
L.simplify('global')
240+
# 'global' is not used here because doing a lot of
241+
# Type III moves is really slow. When looking at
242+
# all paths of length 6 in a 20-crossing knot,
243+
# using 'global' here slows this function down by a
244+
# factor of 4.
245+
L.simplify('pickup')
241246
normalize_crossing_labels(L)
242247

243248
# cap off any trivial components

0 commit comments

Comments
 (0)