Skip to content

Ichiran worker pool#12

Merged
Netdex merged 1 commit into
masterfrom
ichiran-pool
May 2, 2026
Merged

Ichiran worker pool#12
Netdex merged 1 commit into
masterfrom
ichiran-pool

Conversation

@Netdex

@Netdex Netdex commented May 2, 2026

Copy link
Copy Markdown
Owner
  • Use worker pool for ichiran-cli to reduce latency
    • Use ichiran-cli -e to inject a REPL style service to process requests
  • Explicitly set HTTP/2 keepalive when idle for translation to reduce latency

Saves on the order of 200ms from clipboard update to screen draw which I'm pretty happy with.

Each call previously spawned a fresh ichiran-cli process, paying SBCL
startup cost on every parse. The new IchiranPool keeps N long-lived
workers around a base64-line-framed eval protocol; concurrent calls
fan out across workers via a shared mpmc queue.

Drops serde-lexpr by switching the romanize/kanji call sites to
(princ (jsown:to-json ...)) and capturing *standard-output* directly
in the server loop, so the response payload is raw JSON.
@Netdex Netdex marked this pull request as ready for review May 2, 2026 23:01
@Netdex Netdex merged commit 4d86c50 into master May 2, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant