icebox_diff: Use cached re functions

This commit is contained in:
Michael Buesch 2019-06-07 23:42:39 +02:00
parent c4ac25e096
commit 52bbe0f469
1 changed files with 2 additions and 1 deletions

View File

@ -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