internal/rosa: pass stage alongside state

This cleans up many function signatures.

Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
2026-05-17 16:44:13 +09:00
parent 30eb0d6a61
commit 38bc2c7508
89 changed files with 563 additions and 558 deletions

View File

@@ -13,21 +13,21 @@ func TestLoad(t *testing.T) {
t.Run(rosa.Native().MustGet(p).Name, func(t *testing.T) {
t.Parallel()
rosa.Native().Load(rosa.Std, p)
rosa.Native().Std().MustLoad(p)
})
}
}
func BenchmarkAll(b *testing.B) {
s := rosa.Native().Clone()
t := rosa.Native().Clone().Std()
for b.Loop() {
for _, p := range s.Collect() {
s.Load(rosa.Std, p)
for _, p := range t.Collect() {
t.MustLoad(p)
}
b.StopTimer()
s.DropCaches("", 0)
t.DropCaches("", 0)
b.StartTimer()
}
}