Diffs Performance Improvements (#5653)

Co-authored-by: Adam <2363879+adamdotdevin@users.noreply.github.com>
This commit is contained in:
Amadeus Demarzi 2025-12-17 05:33:46 -08:00 committed by GitHub
commit 5c490c51ed
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 298 additions and 253 deletions

View file

@ -0,0 +1,10 @@
import type { WorkerPoolManager } from "@pierre/diffs/worker"
import { createSimpleContext } from "./helper"
const ctx = createSimpleContext<WorkerPoolManager | undefined, { pool: WorkerPoolManager | undefined }>({
name: "WorkerPool",
init: (props) => props.pool,
})
export const WorkerPoolProvider = ctx.provider
export const useWorkerPool = ctx.use