aboutsummaryrefslogtreecommitdiffstats
path: root/icebox
diff options
context:
space:
mode:
authorMichael Buesch <m@bues.ch>2019-06-07 23:42:39 +0200
committerMichael Buesch <m@bues.ch>2019-06-08 16:12:16 +0200
commit52bbe0f4690b305de571eb94b90863d3c0d4fec2 (patch)
treefba18409e43adf3e14017519559e464e9dd59ced /icebox
parentc4ac25e096d5ca660102a8806f9596269724eaba (diff)
downloadicestorm-52bbe0f4690b305de571eb94b90863d3c0d4fec2.tar.gz
icestorm-52bbe0f4690b305de571eb94b90863d3c0d4fec2.tar.bz2
icestorm-52bbe0f4690b305de571eb94b90863d3c0d4fec2.zip
icebox_diff: Use cached re functions
Diffstat (limited to 'icebox')
-rwxr-xr-xicebox/icebox_diff.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/icebox/icebox_diff.py b/icebox/icebox_diff.py
index c0db200..5252fc4 100755
--- a/icebox/icebox_diff.py
+++ b/icebox/icebox_diff.py
@@ -16,6 +16,7 @@
#
import icebox
+from icebox import re_match_cached
import sys
import re
@@ -54,7 +55,7 @@ def explained_bits(db, tile):
bits.add("!B%d[%d]" % (k, i))
text = set()
for entry in db:
- if re.match(r"LC_", entry[1]):
+ if re_match_cached(r"LC_", entry[1]):
continue
if entry[1] in ("routing", "buffer"):
continue