mscluster: reuse control buffers and cut per-property allocations (#2673)

Co-authored-by: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Signed-off-by: Jan-Otto Kröpke <mail@jkroepke.de>
This commit is contained in:
Jan-Otto Kröpke
2026-10-11 13:52:55 +02:00
committed by GitHub
co-authored by Claude Opus 5.5
parent a8adb6d7bc
commit 930609b0e5
11 changed files with 541 additions and 74 deletions
+1 -1
View File
@@ -98,7 +98,7 @@ func (f *fakeAPI) api() *nativeAPI {
return 2, nil
},
closeResource: func(uintptr) error { return nil },
readResource: func(_ uintptr, resource *Resource, _ time.Time) error {
readResource: func(_ uintptr, resource *Resource, _ *controlScratch, _ time.Time) error {
resource.Values["State"] = 2
resource.IdentityValid = true