fetch_ml/internal/worker
Jeremie Fraeys d1ac558107
perf: implement context reuse
Go Worker (internal/worker/native_bridge_libs.go):
- Add global hashCtx with sync.Once for lazy initialization
- Eliminates 5-20ms fh_init/fh_cleanup per hash operation
- Uses runtime.NumCPU() for optimal thread count
- Log initialization time for observability

Zig CLI (cli/src/native/hash.zig):
- Add global_ctx with atomic flag and mutex
- Thread-safe initialization with double-check pattern
- Idempotent init() callable from multiple threads
- Log init time for debugging
2026-02-21 14:19:14 -05:00
..
errors refactor(api): internal refactoring for TUI and worker modules 2026-02-20 15:51:23 -05:00
execution feat: Worker sandboxing and security configuration 2026-02-18 21:27:59 -05:00
executor feat: implement research-grade maintainability phases 2, 5, 8, 10 2026-02-18 15:34:28 -05:00
integrity feat: add manifest signing and native hashing support 2026-02-19 15:34:39 -05:00
interfaces refactor: Phase 1 - Extract worker interfaces 2026-02-17 14:10:03 -05:00
lifecycle refactor(api): internal refactoring for TUI and worker modules 2026-02-20 15:51:23 -05:00
artifacts.go perf: add profiling benchmarks and parallel Go baseline for C++ optimization 2026-02-12 12:04:02 -05:00
config.go feat: Worker sandboxing and security configuration 2026-02-18 21:27:59 -05:00
factory.go refactor(api): internal refactoring for TUI and worker modules 2026-02-20 15:51:23 -05:00
gpu_detector.go feat(worker): add integrity checks, snapshot staging, and prewarm support 2026-01-05 12:31:13 -05:00
hash_selector.go feat: add manifest signing and native hashing support 2026-02-19 15:34:39 -05:00
native_bridge.go feat: add manifest signing and native hashing support 2026-02-19 15:34:39 -05:00
native_bridge_libs.go perf: implement context reuse 2026-02-21 14:19:14 -05:00
native_bridge_nocgo.go feat: add native library bridge and queue integration 2026-02-16 20:38:30 -05:00
snapshot_store.go refactor: adopt PathRegistry in worker snapshot_store.go 2026-02-18 16:56:27 -05:00
testutil.go refactor: Phase 7 - TUI cleanup - reorganize model package 2026-02-17 20:22:04 -05:00
worker.go chore: remove unused runningCount method from worker 2026-02-17 20:43:16 -05:00