Skip to content

Commit 6a5976a

Browse files
Faster tile shape exploration
1 parent bba7299 commit 6a5976a

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

accelforge/mapper/FFM/_make_pmappings/make_pmappings_from_templates/make_tile_shapes.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1448,8 +1448,18 @@ def update_symbol2goal(
14481448
append = "" if direct_min_max else "_per_prime_factor"
14491449
if isinstance(tiles, Symbol) and tiles not in symbols_enumerated:
14501450
update_symbol2goal(s, Goal("min" + append))
1451+
# TODO: Study on whether the following line makes things
1452+
# faster. Doing "diff" no matter what may lead to less
1453+
# pruning BUT it's much faster to prune using "diff"s than
1454+
# "min"s.
1455+
update_symbol2goal(s, Goal("diff"))
14511456
if isinstance(tiled_by, Symbol) and tiled_by not in symbols_enumerated:
14521457
update_symbol2goal(s, Goal("max" + append))
1458+
# TODO: Study on whether the following line makes things
1459+
# faster. Doing "diff" no matter what may lead to less
1460+
# pruning BUT it's much faster to prune using "diff"s than
1461+
# "min"s.
1462+
update_symbol2goal(s, Goal("diff"))
14531463

14541464
for g in check:
14551465
# If this symbol != the one we tile, then a loop is added. Since

0 commit comments

Comments
 (0)