now running smooth without memoization

This commit is contained in:
Felix Roos
2022-03-19 12:03:26 +01:00
parent 77fafd40fb
commit 61e81a4e60
8 changed files with 24 additions and 924 deletions
+1 -1
View File
@@ -24,7 +24,7 @@ async function playStatic(code) {
start = performance.now();
const events = pat
?.query(new State(new TimeSpan(0, seconds)))
?.filter((event) => event.part.begin.valueOf() === event.whole.begin.valueOf())
?.filter((event) => event.part.begin.equals(event.whole.begin))
?.map((event) => ({
time: event.whole.begin.valueOf(),
duration: event.whole.end.sub(event.whole.begin).valueOf(),