Skip to content

Commit 2c3318b

Browse files
committed
Use sets and don't copy the full checkpoint list every time we receive one
1 parent 00aec2b commit 2c3318b

2 files changed

Lines changed: 5 additions & 7 deletions

File tree

src/main/kotlin/be/ugent/topl/mio/debugger/MultiverseDebugger.kt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -281,9 +281,7 @@ class MultiverseDebugger(
281281

282282
override fun checkpointsUpdated() {
283283
super.checkpointsUpdated()
284-
val newCheckpoints = checkpoints.toList()
285-
if (newCheckpoints.size > len)
286-
println("Checkpoints: ${newCheckpoints.subList(len, newCheckpoints.size)}")
284+
val newCheckpoints = checkpoints.subList(0, checkpoints.size)
287285
val change = newCheckpoints.size - len
288286
len = newCheckpoints.size
289287

src/main/kotlin/be/ugent/topl/mio/sourcemap/BinaryInfo.kt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ import java.io.File
44
import java.util.*
55

66
data class WasmInfo(
7-
val choicepoints: List<Int>,
8-
val after_choicepoints: List<Int>,
9-
val primitive_calls: List<Int>,
10-
val after_primitive_calls: List<Int>,
7+
val choicepoints: Set<Int>,
8+
val after_choicepoints: Set<Int>,
9+
val primitive_calls: Set<Int>,
10+
val after_primitive_calls: Set<Int>,
1111
val primitive_fidx_mapping: List<String>
1212
)
1313
data class WasmBinary(val file: File, val metadata: WasmInfo)

0 commit comments

Comments
 (0)