provider: WorkBuddy's mover min is 0.2.13, whose free window reads the ledger in linear time (xmoon76)
xmoon76 on Discord: with WorkBuddy on, the bun plugin host sat at 99% CPU and every session hung. Restarting didn't help; turning WorkBuddy off did. The plugin's free-model daily window read magpie's usage ledger in O(n^2), because pinned(chain) ran after every kept row. 16k rows took 10.5 s on each card refresh, all of it on the host's single JS thread, so every plugin's chats waited behind it. workbuddy 0.2.13 (plugins 3167531) pins once per read and takes 14 ms. Raising the min makes keepMovedCurrent bring every moved user to it. npm view --prefer-online --registry https://registry.npmjs.org @magpie-community/opencode-workbuddy-auth version: 0.2.13. Run at this tree on mote (rebased onto9c58c87e8, whose Qoder CN min touched internal/provider, so it was run again after the rebase;c51bc9063then landed with a one-line ZCode min only, not run again): - go test -count=1 -timeout 45m ./internal/provider: ok (126.5s) - GOOS=linux and GOOS=windows go vet ./internal/provider: ok - gofmt -l internal/provider: clean Plugin side (plugins repo): - The plugin's tests passed on mote and on WSL (Linux). - Broken by hand three ways, each red. Not tried: - xmoon76's own ledger. The 16k-row case is built from the shape the plugin reads. - A host-side guard that names the plugin holding the thread is filed as #4916, not built here.
This commit is contained in:
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user