Tweak matcher (compute connected components in advance). Simple pattern matching with RAMification (incl. Python expressions) seems to work.
This commit is contained in:
parent
bed3529676
commit
4160a8953e
13 changed files with 388 additions and 70 deletions
10
util/timer.py
Normal file
10
util/timer.py
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
import time
|
||||
|
||||
class Timer:
|
||||
def __init__(self, text):
|
||||
self.text = text
|
||||
def __enter__(self):
|
||||
self.start_time = time.perf_counter_ns()
|
||||
def __exit__(self, exc_type, exc_value, traceback):
|
||||
self.end_time = time.perf_counter_ns()
|
||||
print(self.text, (self.end_time - self.start_time)/1000000, "ms")
|
||||
Loading…
Add table
Add a link
Reference in a new issue