Skip to content

Commit

Permalink
Replace LuaTable.Node with flat arrays
Browse files Browse the repository at this point in the history
Rather than having a Node[] array, we now have separate arrays for keys,
values and the next slot. This allows for slightly less pointer chasing
and arguably better cache locality - never sure how much we can do that
in Java!

Valhalla can't come soon enough :(.
  • Loading branch information
SquidDev committed Jan 17, 2024
1 parent 6dbd3e1 commit 5aebd88
Show file tree
Hide file tree
Showing 10 changed files with 310 additions and 180 deletions.
7 changes: 7 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -175,3 +175,10 @@ tasks.test {
events("skipped", "failed")
}
}

val benchmark by tasks.registering(JavaExec::class) {
description = "Run our benchmarking suite"

classpath(sourceSets.test.map { it.runtimeClasspath })
mainClass = "cc.tweaked.cobalt.benchmark.BenchmarkFull"
}
Loading

0 comments on commit 5aebd88

Please sign in to comment.